Skip to content

Commit 573b42d

Browse files
committed
Adjusting to match charsheet relay
1 parent c920c3b commit 573b42d

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

.github/workflows/publish.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
packages: write
1010

1111
jobs:
12-
publish:
12+
build:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout code
@@ -28,7 +28,23 @@ jobs:
2828
npm run build
2929
npm test
3030
31-
- name: Publish package
32-
run: npm publish
31+
publish:
32+
needs: build
33+
runs-on: ubuntu-latest
34+
permissions:
35+
packages: write
36+
contents: read
37+
steps:
38+
- uses: actions/checkout@v3
39+
- uses: actions/setup-node@v3
40+
with:
41+
node-version: 18
42+
registry-url: https://npm.pkg.github.com/
43+
- run: npm install -g npm
44+
- run: npm ci
45+
env:
46+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
47+
- run: npm publish
3348
env:
34-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
50+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

.npmrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
@roll20:registry=https://npm.pkg.github.com/
2-
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
1+
@roll20:registry=https://npm.pkg.github.com
2+
//npm.pkg.github.com/:_authToken=${NPM_TOKEN}

0 commit comments

Comments
 (0)