Skip to content

Commit 675068c

Browse files
author
ItaloCobains
committed
deploy
1 parent 5ebdaf2 commit 675068c

File tree

1 file changed

+11
-26
lines changed

1 file changed

+11
-26
lines changed
Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,21 @@
1-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2-
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
1+
name: "publish package to npm"
32

4-
name: Node.js Package
5-
6-
on:
3+
on:
74
release:
85
types: [created]
96

107
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
16-
with:
17-
node-version: 16
18-
- run: npm ci
19-
- run: npm test
20-
21-
publish-gpr:
22-
needs: build
8+
publish:
239
runs-on: ubuntu-latest
24-
permissions:
25-
contents: read
26-
packages: write
2710
steps:
28-
- uses: actions/checkout@v3
29-
- uses: actions/setup-node@v3
11+
- name: checkout
12+
uses: actions/checkout@v2
13+
- name: node
14+
uses: actions/setup-node@v2
3015
with:
3116
node-version: 16
32-
registry-url: https://npm.pkg.github.com/
33-
- run: npm ci
34-
- run: npm publish
17+
registry-url: https://registry.npmjs.org
18+
- name: publish
19+
run: yarn && yarn publish --access public
3520
env:
36-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
21+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)