Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit efd6f49

Browse files
authored
Merge pull request #141 from shotanue/publish-to-npm
feat: create release to npm ci
2 parents 2a5fee4 + 53a96c2 commit efd6f49

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
name: Create release
11+
runs-on: ubuntu-20.04
12+
strategy:
13+
matrix:
14+
node-version: [16]
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Cache .pnpm-store
19+
uses: actions/cache@v2
20+
with:
21+
path: ~/.pnpm-store
22+
key: ${{ runner.os }}-node${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
23+
24+
- uses: actions/setup-node@v2
25+
with:
26+
node-version: '16'
27+
28+
- name: enable corepack
29+
run: corepack enable
30+
31+
- name: install packages
32+
run: pnpm install
33+
34+
- name: publish
35+
run: pnpm publish
36+
env:
37+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)