Skip to content

Commit 247ad9d

Browse files
committed
fix package publishing errors
1 parent 9b757a0 commit 247ad9d

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/publish.yml

+2-8
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
name: Build and publish binaries
1313
strategy:
1414
matrix:
15-
rust_toolchain: [stable]
1615
os: [ubuntu-latest, macOS-latest, windows-latest]
1716
runs-on: ${{ matrix.os }}
1817
if: contains(github.ref, 'vscode-extension') != true
@@ -23,7 +22,6 @@ jobs:
2322
- name: Install Rust
2423
run: |
2524
rustup update
26-
rustup install ${{ matrix.rust_toolchain }}
2725
2826
- name: Build CLI
2927
if: matrix.os == 'ubuntu-latest'
@@ -106,7 +104,7 @@ jobs:
106104
with:
107105
registry: ghcr.io
108106
username: ${{ github.repository_owner }}
109-
password: ${{ secrets.GHCRPAT }}
107+
password: ${{ secrets.GITHUB_TOKEN }}
110108

111109
- name: Build and push image
112110
uses: docker/build-push-action@v2
@@ -150,10 +148,8 @@ jobs:
150148
sed -i -e 's/"name": "@anweiss\/cddl"/"name": "@anweiss\/cddl-languageserver"/g' cddl-languageserver/package.json
151149
152150
- name: Publish to GPR
153-
env:
154-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
155151
run: |
156-
echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" > ~/.npmrc
152+
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
157153
cp .npmrc pkg/
158154
cp .npmrc cddl-languageserver/
159155
cd pkg
@@ -219,8 +215,6 @@ jobs:
219215
steps:
220216
- name: Checkout source
221217
uses: actions/checkout@v2
222-
with:
223-
persist-credentials: false
224218

225219
- name: Install Rust
226220
run: |

0 commit comments

Comments
 (0)