Skip to content

Commit f6b0bec

Browse files
authored
Merge pull request #725 from XeroAPI/PETOSS-532-Publish-Node-SDK-after-manual-release-from-GitHub
Petoss 532 publish node sdk after manual release from GitHub
2 parents eb7f424 + a041441 commit f6b0bec

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

.github/workflows/publish.yml

+36
Original file line numberDiff line numberDiff line change
@@ -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+
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

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)