Skip to content

Commit 75cbbb3

Browse files
committed
chore(ci): Release workflow
1 parent b6dc25a commit 75cbbb3

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/release.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
- "v*.*.*-*"
8+
9+
jobs:
10+
npm:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 30
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
- name: Use Node.js 16.x
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: 16.x
21+
- name: Yarn install
22+
uses: borales/actions-yarn@v4
23+
with:
24+
cmd: install --frozen-lockfile
25+
- name: Set NPM token
26+
run: echo //registry.npmjs.org/:_authToken=$NPM_TOKEN > ~/.npmrc
27+
env:
28+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29+
- name: NPM publish
30+
run: npm publish --access public

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,8 @@
3636
},
3737
"engines": {
3838
"node": ">=0.10"
39+
},
40+
"publishConfig": {
41+
"access": "public"
3942
}
4043
}

0 commit comments

Comments
 (0)