Skip to content

Commit 04acfbb

Browse files
authored
Create release.yml
1 parent f0cd8a7 commit 04acfbb

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/release.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release Process
2+
on:
3+
release:
4+
types: [ published ]
5+
concurrency: ${{ github.workflow }}-${{ github.ref }}
6+
jobs:
7+
npm:
8+
name: Publish to npm
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: 🧮 Checkout code
12+
uses: actions/checkout@v3
13+
14+
- name: 🔧 Yarn cache
15+
uses: actions/setup-node@v3
16+
with:
17+
cache: "yarn"
18+
19+
- name: 🔨 Install dependencies
20+
run: "yarn install --pure-lockfile"
21+
22+
- name: 🚀 Publish to npm
23+
id: npm-publish
24+
uses: JS-DevTools/npm-publish@v1
25+
with:
26+
token: ${{ secrets.NPM_TOKEN }}
27+
access: public

0 commit comments

Comments
 (0)