Skip to content

Commit cc666a1

Browse files
committed
Add Release workflow
- Add check step - Add lint step - Remove deprecated actions/create-release in favour of softprops/action-gh-release
1 parent 474c728 commit cc666a1

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed
Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Publish
1+
name: Release
22

33
on:
44
push:
55
branches:
66
- main
77

88
jobs:
9-
publish:
9+
release:
1010
if: startsWith(github.event.head_commit.message, 'v')
1111

1212
runs-on: ubuntu-latest
@@ -22,17 +22,20 @@ jobs:
2222
run: npm add -g pnpm@6
2323
- name: Install dependencies
2424
run: pnpm install
25+
- name: Check formatting
26+
run: pnpm prettier:check-all
27+
- name: Lint
28+
run: pnpm eslint:lint-all
2529
- name: Test
2630
run: pnpm test
2731
- name: Publish
2832
run: npm publish
2933
env:
3034
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3135
- name: Create Release
32-
uses: actions/create-release@v1
33-
env:
34-
GITHUB_TOKEN: ${{ github.token }}
36+
uses: softprops/action-gh-release@v1
3537
with:
36-
tag_name: ${{ github.event.head_commit.message }}
37-
release_name: ${{ github.event.head_commit.message }}
3838
draft: true
39+
name: ${{ github.event.head_commit.message }}
40+
tag_name: ${{ github.event.head_commit.message }}
41+
token: ${{ github.token }}

0 commit comments

Comments
 (0)