Skip to content

Commit 7aedd34

Browse files
committed
fix: workflow
1 parent 56f55b9 commit 7aedd34

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed
Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
on:
2-
push:
3-
branches:
4-
- main
5-
name: release-please
6-
permissions:
7-
contents: write
8-
pull-requests: write
9-
jobs:
10-
release-please:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: googleapis/release-please-action@v4
14-
id: release
15-
with:
16-
release-type: node
17-
- uses: actions/checkout@v4
18-
if: ${{ steps.release.outputs.release_created }}
19-
- uses: actions/setup-node@v4
20-
with:
21-
node-version: 20
22-
registry-url: "https://registry.npmjs.org"
23-
if: ${{ steps.release.outputs.release_created }}
24-
- run: npm ci
25-
if: ${{ steps.release.outputs.release_created }}
26-
- run: npm run lint
27-
if: ${{ steps.release.outputs.release_created }}
28-
- run: npm run build
29-
if: ${{ steps.release.outputs.release_created }}
30-
- run: npm test
31-
if: ${{ steps.release.outputs.release_created }}
32-
- run: npm publish
33-
env:
34-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35-
if: ${{ steps.release.outputs.release_created }}
1+
on:
2+
push:
3+
branches:
4+
- master
5+
name: release-please
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
jobs:
10+
release-please:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: googleapis/release-please-action@v4
14+
id: release
15+
with:
16+
release-type: node
17+
- uses: actions/checkout@v4
18+
if: ${{ steps.release.outputs.release_created }}
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
registry-url: "https://registry.npmjs.org"
23+
if: ${{ steps.release.outputs.release_created }}
24+
- run: npm ci
25+
if: ${{ steps.release.outputs.release_created }}
26+
- run: npm run lint
27+
if: ${{ steps.release.outputs.release_created }}
28+
- run: npm run build
29+
if: ${{ steps.release.outputs.release_created }}
30+
- run: npm test
31+
if: ${{ steps.release.outputs.release_created }}
32+
- run: npm publish
33+
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)