onjs 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,6 +12,7 @@ on:
|
|
|
12
12
|
permissions:
|
|
13
13
|
contents: read
|
|
14
14
|
pull-requests: read
|
|
15
|
+
id-token: write
|
|
15
16
|
|
|
16
17
|
concurrency:
|
|
17
18
|
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
|
|
@@ -44,20 +45,26 @@ jobs:
|
|
|
44
45
|
steps:
|
|
45
46
|
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
|
|
46
47
|
- name: Check out repository code
|
|
47
|
-
uses: actions/checkout@
|
|
48
|
+
uses: actions/checkout@v4
|
|
49
|
+
|
|
48
50
|
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
|
|
49
51
|
- run: echo "The workflow is now ready to test your code on the runner."
|
|
52
|
+
|
|
53
|
+
# Setup .npmrc file to publish to npm
|
|
54
|
+
- uses: actions/setup-node@v4
|
|
55
|
+
with:
|
|
56
|
+
node-version: '20.x'
|
|
57
|
+
registry-url: 'https://registry.npmjs.org'
|
|
58
|
+
|
|
50
59
|
- name: Installing dependencies
|
|
51
|
-
run: npm
|
|
60
|
+
run: npm ci
|
|
52
61
|
|
|
53
62
|
- name: Testing
|
|
54
63
|
run: npm test
|
|
64
|
+
|
|
55
65
|
- run: echo "Job's status is ${{ job.status }}."
|
|
56
|
-
|
|
57
|
-
with:
|
|
58
|
-
node-version: '16.x'
|
|
59
|
-
registry-url: 'https://registry.npmjs.org'
|
|
66
|
+
|
|
60
67
|
- name: Publishing to NPM
|
|
61
|
-
run: npm publish
|
|
68
|
+
run: npm publish --provenance --access public
|
|
62
69
|
env:
|
|
63
70
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|