forked from LiteSVM/litesvm
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (40 loc) · 1.25 KB
/
release-node.yml
File metadata and controls
41 lines (40 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: release NodeJS
on:
push:
tags:
- "node-v[0-9]+.[0-9]+.[0-9]+"
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: 22
check-latest: true
cache: yarn
cache-dependency-path: crates/node-litesvm/yarn.lock
- name: Install dependencies
run: cd crates/node-litesvm/ && corepack enable && yarn install
- name: Create npm dirs
run: cd crates/node-litesvm/ && yarn napi create-npm-dirs
- name: Download all artifacts
uses: dawidd6/action-download-artifact@v11
with:
workflow: node-build.yml
path: crates/node-litesvm/artifacts
- name: Move artifacts
run: cd crates/node-litesvm/ && yarn artifacts
- name: Compile Typescript
run: cd crates/node-litesvm/ && yarn build:js
- name: List packages
run: cd crates/node-litesvm/ && ls -R ./npm
- name: Publish
run: |
cd crates/node-litesvm/
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}