Skip to content

Commit 26facb4

Browse files
committed
init setup of publish workflow
1 parent 3ecb2d5 commit 26facb4

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/build.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,8 @@ jobs:
2727
- name: Build Angular project
2828
run: npm run build
2929

30-
- name: Authenticate to GitHub Packages registry
31-
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
32-
3330
- name: Publish to GitHub Packages
34-
env:
35-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
36-
run: npm publish
37-
working-directory: ./dist/angular-serial
31+
uses: JS-DevTools/npm-publish@v3
32+
with:
33+
token: ${{ secrets.NPM_TOKEN }}
34+
registry: 'https://npm.pkg.github.com'

0 commit comments

Comments
 (0)