Skip to content

Commit 6d2e533

Browse files
committed
publish on tag
1 parent 3fca5ab commit 6d2e533

2 files changed

Lines changed: 44 additions & 4 deletions

File tree

.github/workflows/npm-publish-github-packages.yml

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
name: github publish
55

66
on:
7-
release:
8-
types: [created]
7+
push:
8+
tags:
9+
- 'v*'
910

1011
jobs:
11-
cache-and-publish:
12+
publish-linux:
1213
runs-on: ubuntu-latest
1314
permissions:
1415
contents: write
@@ -26,3 +27,41 @@ jobs:
2627
- run: pnpm run publish
2728
env:
2829
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
31+
publish-linux:
32+
runs-on: windows-latest
33+
permissions:
34+
contents: write
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: pnpm/action-setup@v4
38+
with:
39+
version: 10
40+
run_install: false
41+
- uses: actions/setup-node@v4
42+
with:
43+
node-version: 20
44+
cache: 'pnpm'
45+
- run: pnpm install
46+
- run: pnpm run publish
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
50+
publish-mac:
51+
runs-on: macos-latest
52+
permissions:
53+
contents: write
54+
steps:
55+
- uses: actions/checkout@v4
56+
- uses: pnpm/action-setup@v4
57+
with:
58+
version: 10
59+
run_install: false
60+
- uses: actions/setup-node@v4
61+
with:
62+
node-version: 20
63+
cache: 'pnpm'
64+
- run: pnpm install
65+
- run: pnpm run publish
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

forge.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ const config: ForgeConfig = {
2323
owner: 'lichon',
2424
name: 'screen-share-cli',
2525
},
26-
prerelease: false
26+
prerelease: false,
27+
generateReleaseNotes: true,
2728
}
2829
}
2930
],

0 commit comments

Comments
 (0)