File tree Expand file tree Collapse file tree 2 files changed +38
-2
lines changed Expand file tree Collapse file tree 2 files changed +38
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish
2
+ on :
3
+ release :
4
+ types : [published]
5
+
6
+ jobs :
7
+ publish :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - name : Checkout xero-node repo
11
+ uses : actions/checkout@v4
12
+ with :
13
+ repository : XeroAPI/xero-node
14
+ path : xero-node
15
+
16
+ - name : Set up Node environment
17
+ uses : actions/setup-node@v4
18
+ with :
19
+ node-version : 20
20
+ cache : ' npm'
21
+ cache-dependency-path : ' **/package-lock.json'
22
+ registry-url : ' https://registry.npmjs.org'
23
+
24
+ - name : Install dependencies
25
+ run : npm ci
26
+ working-directory : xero-node
27
+
28
+ - name : Run Build
29
+ run : npm run build
30
+ working-directory : xero-node
31
+
32
+ - name : Publish to npm
33
+ env :
34
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
35
+ run : npm publish
36
+ working-directory : xero-node
You can’t perform that action at this time.
0 commit comments