Skip to content

Commit affb9d3

Browse files
Merge pull request #116 from technote-space/feature/#112
feat: upublish package (#112)
2 parents 8442d2c + 887b5a2 commit affb9d3

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,37 @@ on:
22
push:
33
tags:
44
- 'v*'
5+
name: Release
6+
7+
jobs:
8+
release:
9+
name: Publish Package
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@master
14+
with:
15+
fetch-depth: 3
16+
- name: Check package version
17+
uses: technote-space/ga-package-version-checker@v1
18+
with:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
- name: Install Package dependencies
21+
run: yarn install
22+
- name: Test
23+
run: yarn test
24+
- name: Build
25+
run: yarn build
26+
- name: Publish
27+
uses: actions/npm@master
28+
env:
29+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
30+
with:
31+
args: publish
32+
- uses: 8398a7/action-slack@v1
33+
with:
34+
type: failure
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
38+
if: failure()

0 commit comments

Comments
 (0)