Skip to content

Commit 3aa07d4

Browse files
committed
ci: merge both publish workflows
1 parent 4b6af34 commit 3aa07d4

File tree

2 files changed

+24
-32
lines changed

2 files changed

+24
-32
lines changed

.github/workflows/publish-beta.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/publish-tag.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
name: Release-Full
22

33
on:
4+
workflow_run:
5+
workflows: [ "eslint" ]
6+
branches: [ master ]
7+
types:
8+
- completed
49
release:
510
types:
611
- published
712

13+
permissions:
14+
id-token: write # Required for OIDC
15+
contents: read
16+
817
jobs:
9-
publish:
18+
publish-beta:
1019
runs-on: ubuntu-latest
1120
steps:
1221
- uses: actions/checkout@v5
@@ -18,8 +27,18 @@ jobs:
1827
- run: npm ci
1928
- run: npm run build
2029
#- run: npm version prerelease --no-git-tag-version --preid ${{ github.ref_name }}-${{ github.sha }}
21-
- uses: JS-DevTools/npm-publish@v4
30+
- run: npm publish --tag=beta
31+
publish-tag:
32+
runs-on: ubuntu-latest
33+
if: github.event_name == 'release'
34+
steps:
35+
- uses: actions/checkout@v5
36+
with:
37+
submodules: recursive
38+
- uses: actions/setup-node@v6
2239
with:
23-
access: public
24-
token: ${{ secrets.NPM_TOKEN }}
25-
tag: latest
40+
node-version: 24
41+
- run: npm ci
42+
- run: npm run build
43+
#- run: npm version prerelease --no-git-tag-version --preid ${{ github.ref_name }}-${{ github.sha }}
44+
- run: npm publish

0 commit comments

Comments
 (0)