Skip to content

Commit 48e28ad

Browse files
committed
ci: split npm publishing jobs again
1 parent 48c8829 commit 48e28ad

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/publish-npm-package.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,8 @@ env:
1010
NODE_VERSION: '10.x'
1111

1212
jobs:
13-
build-and-publish:
14-
name: Build and publish Node.js package
13+
publish-to-npmjs:
1514
runs-on: ubuntu-latest
16-
permissions:
17-
contents: read
18-
packages: write
1915
steps:
2016
- uses: actions/checkout@v3
2117
- name: Set up publishing to npmjs.com
@@ -27,11 +23,19 @@ jobs:
2723
- run: npm publish
2824
env:
2925
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
26+
publish-to-github-packages:
27+
runs-on: ubuntu-latest
28+
permissions:
29+
contents: read
30+
packages: write
31+
steps:
32+
- uses: actions/checkout@v3
3033
- name: Set up publishing to GitHub Packages
3134
uses: actions/setup-node@v3
3235
with:
3336
node-version: ${{ env.NODE_VERSION }}
3437
registry-url: 'https://npm.pkg.github.com'
38+
- run: npm ci
3539
- run: npm publish
3640
env:
3741
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)