File tree 4 files changed +7158
-17
lines changed
4 files changed +7158
-17
lines changed Original file line number Diff line number Diff line change 1
- name : Publish package
1
+ name : Node.js CI
2
+ permissions :
3
+ contents : write
4
+ packages : write
2
5
on :
3
- release :
4
- types : [published]
6
+ push :
7
+ branches : [master]
8
+ pull_request :
9
+ branches : [master]
10
+
5
11
jobs :
6
12
build :
13
+ env :
14
+ CI : true
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - name : Checkout Code
18
+ uses : actions/checkout@v4
19
+ - name : Use Node.js from .nvmrc
20
+ uses : actions/setup-node@v4
21
+ with :
22
+ node-version : ' 20.x'
23
+ - name : Install dependencies
24
+ run : npm ci
25
+ - name : Build 🔧
26
+ run : npm run build --if-present
27
+ - name : Test
28
+ run : npm run test --if-present
29
+ release :
30
+ name : semantic-release
31
+ needs : [build]
7
32
runs-on : ubuntu-latest
8
- permissions :
9
- contents : read
10
- packages : write
11
33
steps :
12
34
- name : Checkout Code
13
35
uses : actions/checkout@v4
14
- - name : Setup Node
36
+ with :
37
+ persist-credentials : false
38
+ - name : Setup Node.Js
15
39
uses : actions/setup-node@v4
16
40
with :
17
41
node-version : ' 20.x'
18
- registry-url : ' https://registry.npmjs.org'
19
- scope : ' @extendscript'
20
- - name : Install dependencies and build 🔧
21
- run : npm ci && npm run build
22
- - name : Publish package on Github 📦
23
- run : npm publish
42
+ - name : Publish package 📦
43
+ run : |
44
+ npm ci
45
+ npx semantic-release --ci
24
46
env :
25
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
47
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments