-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 994 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Release
on:
workflow_dispatch:
jobs:
validate:
uses: "./.github/workflows/validate.yml"
secrets: inherit
publish:
runs-on: ubuntu-22.04
needs:
- validate
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Bump and Tag
run: |
git config user.email "[email protected]"
git config user.name "GitHub Actions"
bunx changelogen@latest --release
git push
git push --tags
- name: NPM
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
pnpm publish --no-git-checks
- name: GitHub Release
run: bunx changelogen@latest gh release --token ${{ secrets.GITHUB_TOKEN }}