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 ef99e82 commit 362fa82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@ on:
push:
branches:
- main
- release-dry
repository_dispatch:
types: [semantic-release]

permissions:
contents: read # for checkout

jobs:
release:
name: Release
Expand All @@ -17,7 +14,6 @@ jobs:
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 @@ -28,7 +24,4 @@ jobs:
with:
node-version: "lts/*"
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release --ci
run: npm run release-dry-run
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"scripts": {
"release-dry-run": "semantic-release --dry-run",
"release-dry-run": "semantic-release --no-ci --dry-run",
"release": "semantic-release"
},
"devDependencies": {
Expand All @@ -9,7 +9,8 @@
},
"release": {
"branches": [
"main"
{ "name": "main" },
{ "name": "release-version-update", "channel": "next"}
],
"plugins": [
"@semantic-release/commit-analyzer",
Expand Down

0 comments on commit 362fa82

Please sign in to comment.