ci(release): use local version (#60)
follow up to https://github.com/actions/create-github-app-token/pull/59#issuecomment-1751353971 --------- Co-authored-by: Parker Brown <[email protected]>
This commit is contained in:
co-authored by
Parker Brown
parent
b94a200224
commit
998b8757ce
@@ -14,16 +14,21 @@ jobs:
|
|||||||
name: release
|
name: release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/create-github-app-token@v1
|
# build local version to create token
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
cache: "npm"
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm run build
|
||||||
|
- uses: ./
|
||||||
id: app-token
|
id: app-token
|
||||||
with:
|
with:
|
||||||
app-id: ${{ vars.RELEASER_APP_ID }}
|
app-id: ${{ vars.RELEASER_APP_ID }}
|
||||||
private-key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }}
|
private-key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }}
|
||||||
- uses: actions/checkout@v4
|
# install release dependencies and release
|
||||||
with:
|
|
||||||
token: ${{ steps.app-token.outputs.token }}
|
|
||||||
- run: npm install --no-save @semantic-release/git semantic-release-plugin-github-breaking-version-tag
|
- run: npm install --no-save @semantic-release/git semantic-release-plugin-github-breaking-version-tag
|
||||||
- run: npm run build
|
|
||||||
- run: npx semantic-release --debug
|
- run: npx semantic-release --debug
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||||
|
|||||||
Reference in New Issue
Block a user