Skip to content

Commit

Permalink
feat: fix semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadi Abu Hilal authored and Shadi Abu Hilal committed Oct 24, 2023
1 parent a2bcc2b commit 25e3c0a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 5 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/push-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ jobs:
Publish:
needs: call-resuable-workflows
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
strategy:
fail-fast: false
matrix:
Expand All @@ -24,14 +29,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
cache: 'npm'
- name: Install dependencies
run: npm ci
run: npm clean-install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
9 changes: 9 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github",
"@semantic-release/changelog"
]
}
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/shadiabuhilal/rtl-detect.git"
"url": "git+https://github.com/shadiabuhilal/rtl-detect.git"
},
"keywords": [
"rtl-detect",
Expand Down Expand Up @@ -42,11 +42,9 @@
"url": "https://github.com/shadiabuhilal/rtl-detect/blob/master/LICENSE.md"
}
],
"release": {
"branches": ["master"]
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/release-notes-generator": "^12.0.0",
"eslint": "^7.26.0",
"jest": "^26.6.3",
"semantic-release": "^22.0.5"
Expand Down

0 comments on commit 25e3c0a

Please sign in to comment.