ci: use npm trusted publishing instead of CFA (#156)
This commit is contained in:
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@@ -13,9 +13,9 @@ jobs:
|
|||||||
name: Release
|
name: Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test
|
needs: test
|
||||||
environment: npm
|
environment: npm-trusted-publisher
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write # for CFA and npm provenance
|
id-token: write # for publishing releases
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
@@ -28,9 +28,10 @@ jobs:
|
|||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
- name: Install
|
- name: Install
|
||||||
run: yarn install --immutable
|
run: yarn install --immutable
|
||||||
- uses: continuousauth/action@4e8a2573eeb706f6d7300d6a9f3ca6322740b72d # v1.0.5
|
- name: Get GitHub App Token
|
||||||
timeout-minutes: 60
|
id: secret-service
|
||||||
|
uses: electron/secret-service-action@3476425e8b30555aac15b1b7096938e254b0e155 # v1.0.0
|
||||||
|
- name: Run Semantic Release
|
||||||
|
uses: electron/semantic-trusted-release@5eceb399ac8de8863205cf6e34109bce473ba566 # v1.0.1
|
||||||
with:
|
with:
|
||||||
project-id: ${{ secrets.CFA_PROJECT_ID }}
|
github-token: ${{ fromJSON(steps.secret-service.outputs.secrets).GITHUB_TOKEN }}
|
||||||
secret: ${{ secrets.CFA_SECRET }}
|
|
||||||
npm-token: ${{ secrets.NPM_TOKEN }}
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"plugins": [
|
"plugins": [
|
||||||
"@semantic-release/commit-analyzer",
|
"@semantic-release/commit-analyzer",
|
||||||
"@semantic-release/release-notes-generator",
|
"@semantic-release/release-notes-generator",
|
||||||
"@continuous-auth/semantic-release-npm",
|
"@semantic-release/npm",
|
||||||
"@semantic-release/github"
|
"@semantic-release/github"
|
||||||
],
|
],
|
||||||
"branches": [ "main" ]
|
"branches": [ "main" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user