Skip to content

Commit

Permalink
ci: adjust release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Peters committed Oct 12, 2024
1 parent cbfdea1 commit 1a32ec5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,14 @@ on:
- main
repository_dispatch:
types: [semantic-release]

permissions:
contents: read # for checkout

contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -27,8 +22,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install dependencies
run: npm install
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release --ci
run: npm run release
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"scripts": {
"release-dry-run": "semantic-release --dry-run",
"release-dry-run": "semantic-release --no-ci --dry-run",
"release": "semantic-release"
},
"devDependencies": {
"semantic-release": "^24.1.2",
"semantic-release-replace-plugin": "^1.2.7"
},
"release": {
"branches": [
"main"
],
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
[
Expand Down

0 comments on commit 1a32ec5

Please sign in to comment.