We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eb7f424 + a041441 commit f6b0becCopy full SHA for f6b0bec
.github/workflows/publish.yml
@@ -0,0 +1,36 @@
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
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
31
32
+ - name: Publish to npm
33
+ env:
34
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35
+ run: npm publish
36
package-lock.json
0 commit comments