node-osc 8.0.7 → 8.0.8
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.
|
@@ -6,27 +6,33 @@ on:
|
|
|
6
6
|
name: Create Release
|
|
7
7
|
|
|
8
8
|
jobs:
|
|
9
|
-
publish:
|
|
9
|
+
publish-to-npm:
|
|
10
10
|
name: Publish to npm
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
id-token: write
|
|
12
14
|
steps:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
- name: Checkout source
|
|
16
|
+
uses: actions/checkout@v3
|
|
17
|
+
- name: Setup node
|
|
18
|
+
uses: actions/setup-node@v3
|
|
19
|
+
with:
|
|
20
|
+
node-version: 18
|
|
21
|
+
registry-url: 'https://registry.npmjs.org'
|
|
22
|
+
cache: npm
|
|
23
|
+
- name: Install dependencies and build
|
|
24
|
+
run: npm ci
|
|
25
|
+
- name: Publish package
|
|
26
|
+
run: npm exec npm@npm/cli#provenance -- publish --provenance
|
|
27
|
+
env:
|
|
28
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
25
29
|
|
|
26
30
|
create-github-release:
|
|
27
31
|
name: Create GitHub Release
|
|
28
32
|
runs-on: ubuntu-latest
|
|
29
|
-
needs: publish
|
|
33
|
+
needs: publish-to-npm
|
|
34
|
+
permissions:
|
|
35
|
+
contents: write
|
|
30
36
|
steps:
|
|
31
37
|
- name: Checkout code
|
|
32
38
|
uses: actions/checkout@v3
|