-
-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (29 loc) · 743 Bytes
/
release.yml
File metadata and controls
36 lines (29 loc) · 743 Bytes
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
name: Release Package
on:
release:
types: [created]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node 16
uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Setup PNPM
uses: pnpm/action-setup@v2.0.1
with:
version: 7.0.0
- name: Install
run: pnpm install
- name: Build
run: pnpm build
- name: Publish
run: |
pnpm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}"
pnpm publish --no-git-checks
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}