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

Commit bdeb7cc

Browse files
authored
Update release-package.yml
1 parent 6bacfeb commit bdeb7cc

File tree

1 file changed

+11
-21
lines changed

1 file changed

+11
-21
lines changed

.github/workflows/release-package.yml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,18 @@ name: Node.js Package
33
on:
44
release:
55
types: [created]
6-
76
jobs:
8-
build:
7+
build_publish:
98
runs-on: ubuntu-latest
109
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v1
13-
with:
14-
node-version: 12
15-
- run: npm ci
16-
- run: npm test
10+
- uses: actions/checkout@v2
11+
# Setup .npmrc file to publish to GitHub Packages
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: '12.x'
15+
registry-url: 'https://npm.pkg.github.com'
16+
- run: npm ci
17+
- run: npm publish
18+
env:
19+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1720

18-
publish-gpr:
19-
needs: build
20-
runs-on: ubuntu-latest
21-
steps:
22-
- uses: actions/checkout@v2
23-
- uses: actions/setup-node@v1
24-
with:
25-
node-version: 12
26-
registry-url: https://npm.pkg.github.com/
27-
- run: npm ci
28-
- run: npm publish
29-
env:
30-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)