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 authored and FlxPeters committed Oct 12, 2024
1 parent cbfdea1 commit 1421c06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
- main
repository_dispatch:
types: [semantic-release]

permissions:
contents: read # for checkout

jobs:
release:
name: Release
Expand All @@ -17,7 +13,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 @@ -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": ["master"],
"plugins": [
"@semantic-release/commit-analyzer",
[
Expand Down

0 comments on commit 1421c06

Please sign in to comment.