File tree Expand file tree Collapse file tree 4 files changed +245
-51
lines changed
Expand file tree Collapse file tree 4 files changed +245
-51
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,10 @@ jobs:
1818 strategy:
1919 matrix:
2020 node:
21- - 14.18.0
22- - 16.0.0
23- - 16
21+ - 16.14.0
22+ - 18.0.0
2423 - 18
25- - 19
24+ - 20
2625 steps:
2726 - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
2827 - name: Setup node
@@ -44,21 +43,17 @@ jobs:
4443 - run: npm clean-install
4544 - run: npm test
4645 - uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3
47- trigger-release:
48- runs-on: ubuntu-latest
49- if: github.event_name == 'push'
46+ release:
5047 needs:
5148 - verify
5249 - verify-matrix
53- steps:
54- - uses: octokit/request-action@v2.x
55- with:
56- route: >-
57- POST
58- /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches
59- owner: form8ion
60- repo: prettier
61- ref: ${{ github.ref }}
62- workflow_id: release.yml
63- env:
64- GITHUB_TOKEN: ${{ secrets.GH_PAT }}
50+ permissions:
51+ contents: write
52+ id-token: write
53+ issues: write
54+ pull-requests: write
55+ uses: form8ion/.github/.github/workflows/release-package.yml@master
56+ secrets:
57+ NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
58+ permissions:
59+ contents: read
Original file line number Diff line number Diff line change @@ -3,23 +3,15 @@ name: Release
33 push:
44 branches:
55 - alpha
6- workflow_dispatch: {}
7- env:
8- FORCE_COLOR: 1
9- NPM_CONFIG_COLOR: always
6+ permissions:
7+ contents: read
108jobs:
119 release:
12- runs-on: ubuntu-latest
13- steps:
14- - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
15- - name: Setup node
16- uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # v3
17- with:
18- node-version-file: .nvmrc
19- cache: npm
20- - run: npm clean-install
21- - name: semantic-release
22- run: npx semantic-release
23- env:
24- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25- NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
10+ permissions:
11+ contents: write
12+ id-token: write
13+ issues: write
14+ pull-requests: write
15+ uses: form8ion/.github/.github/workflows/release-package.yml@master
16+ secrets:
17+ NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
You can’t perform that action at this time.
0 commit comments