Skip to content

Commit f6ede93

Browse files
committed
feat(release): add new release workflow
1 parent 4a81533 commit f6ede93

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/release.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release Version
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Install lib dependencies
22+
uses: bahmutov/npm-install@v1
23+
with:
24+
useLockFile: false # Better for building libraries
25+
26+
# - name: Generate .npmrc
27+
# run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
28+
29+
- name: Release version
30+
run: yarn release --ci

0 commit comments

Comments
 (0)