Skip to content

Commit bf2099c

Browse files
chore: update release-please workflow (#479)
1 parent a8ad83c commit bf2099c

File tree

1 file changed

+33
-36
lines changed

1 file changed

+33
-36
lines changed

.github/workflows/release.yml

+33-36
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,37 @@
11
on:
2-
push:
3-
branches:
4-
- 'master'
2+
push:
3+
branches:
4+
- master
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
510
name: release-please
11+
612
jobs:
7-
release-please:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- name: Release to Github
11-
uses: GoogleCloudPlatform/release-please-action@v2
12-
id: release
13-
with:
14-
token: ${{ secrets.GITHUB_TOKEN }}
15-
release-type: node
16-
package-name: tailwindcss-classnames
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: googleapis/release-please-action@v4
17+
with:
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
release-type: node
20+
package-name: tailwindcss-classnames
21+
22+
- uses: actions/checkout@v4
23+
if: ${{ steps.release.outputs.release_created }}
24+
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version: 14
28+
registry-url: "https://registry.npmjs.org"
29+
if: ${{ steps.release.outputs.release_created }}
30+
31+
- run: npm ci
32+
if: ${{ steps.release.outputs.release_created }}
1733

18-
- uses: actions/checkout@v2
19-
if: ${{ steps.release.outputs.release_created }}
20-
- uses: actions/setup-node@v1
21-
with:
22-
node-version: 14
23-
registry-url: 'https://registry.npmjs.org'
24-
if: ${{ steps.release.outputs.release_created }}
25-
- run: yarn install --frozen-lockfile
26-
if: ${{ steps.release.outputs.release_created }}
27-
# - name: Generating Lib types
28-
# run: yarn generate
29-
# if: ${{ steps.release.outputs.release_created }}
30-
# - name: Commit yarn generated files
31-
# uses: stefanzweifel/git-auto-commit-action@v2.3.0
32-
# with:
33-
# commit_message: chore:generate library types
34-
# commit_user_name: GitHub Actions
35-
# commit_user_email: actions@github.com
36-
# if: ${{ steps.release.outputs.release_created }}
37-
- run: npm publish
38-
env:
39-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
40-
if: ${{ steps.release.outputs.release_created }}
34+
- run: npm publish
35+
env:
36+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
37+
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)