Skip to content
This repository was archived by the owner on May 16, 2022. It is now read-only.

Commit 360b7cd

Browse files
committed
Fix GitHub Actions
1 parent 7995e3e commit 360b7cd

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,27 @@ on:
66

77
jobs:
88
npm:
9-
name: NPM
9+
name: Publish
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v1
13+
name: Checkout Code
1314
- uses: actions/setup-node@v1
15+
name: Setup Node for NPM
1416
with:
1517
node-version: 12
1618
registry-url: https://registry.npmjs.org/
1719
- run: npm install
20+
name: Install dependencies
1821
- run: npm publish
22+
name: Publish to NPM
1923
env:
20-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
21-
github:
22-
name: GitHub Package Registry
23-
runs-on: ubuntu-latest
24-
steps:
25-
- uses: actions/checkout@v2
26-
- uses: actions/setup-node@v1
27-
with:
28-
node-version: 12
29-
registry-url: 'https://npm.pkg.github.com'
30-
- run: npm install
31-
- run: npm publish
32-
env:
33-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
25+
- uses: actions/setup-node@v1
26+
name: Setup Node for the GitHub Package Registry
27+
with:
28+
registry-url: https://npm.pkg.github.com
29+
- run: npm publish
30+
name: Publish to the GitHub Package Registry
31+
env:
32+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)