generated from kirishima-ship/template
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 956 Bytes
/
release.yml
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
on:
release:
types:
- published
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- name: Setup pnpm
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0
with:
version: latest
- name: Setup Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
node-version-file: .node-version
- name: Installing dependencies
run: pnpm install --frozen-lockfile
- name: Compile source
run: pnpm run build
- name: "NPM Identity"
env:
NODE_AUTH_TOKEN: '${{ secrets.NPM_TOKEN }}'
run: |
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > .npmrc
- name: Publish source
run: |
pnpm publish --no-git-checks --access public || true