File tree 3 files changed +2338
-2781
lines changed
3 files changed +2338
-2781
lines changed Original file line number Diff line number Diff line change 1
- name : Publish package to GitHub Packages
1
+ name : Publish Package to npmjs
2
2
3
- # Trigger the create release workflow
4
3
on :
5
4
push :
6
5
tags :
7
6
- " v*"
8
7
9
8
jobs :
10
- release :
11
- name : Create Release
9
+ build :
12
10
runs-on : ubuntu-latest
13
11
steps :
14
- - name : Checkout code
15
- uses : actions/checkout@v2
16
- - name : Create Release
17
- id : create_release
18
- uses : " marvinpinto/action-automatic-releases@v1.2.1"
12
+ - uses : actions/checkout@v4
13
+ # Setup .npmrc file to publish to npm
14
+ - uses : actions/setup-node@v4
19
15
with :
20
- repo_token : " ${{ secrets.SMOOTH_QDQD_SECP256R1_RELEASE_TOKEN }}"
21
- prerelease : false
22
-
23
- publish-gpr :
24
- needs : release # wait for the release job to finish
25
- runs-on : ubuntu-latest
26
- permissions :
27
- packages : write
28
- contents : read
29
- steps :
30
- - uses : actions/checkout@v3
31
- - uses : actions/setup-node@v3
32
- with :
33
- node-version : 18
34
- registry-url : https://npm.pkg.github.com/
16
+ node-version : ' 20.x'
17
+ registry-url : ' https://registry.npmjs.org'
35
18
- run : npm ci
36
19
# the test command starts by building the package
37
20
- run : npm run test
38
- - run : npm publish
21
+ - run : npm publish --provenance --access public
39
22
env :
40
- NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN }}
23
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments