Skip to content

Commit

Permalink
feat: adds semantic release and workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
R-K-H committed Aug 13, 2024
1 parent 77bfcdc commit 457cb64
Show file tree
Hide file tree
Showing 3 changed files with 2,097 additions and 9 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Release
on:
push:
branches:
- main # or main

permissions:
contents: read # for checkout

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
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "21"
registry-url: "https://registry.npmjs.org"

- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm run build # Update or remove this line depending on your build process

- 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 }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"rxjs": "^7.8.1"
},
"devDependencies": {
"semantic-release": "^24.0.0",
"tsconfig-paths": "^4.2.0",
"tscpaths": "^0.0.9",
"typescript": "^5.4.5"
Expand Down
Loading

0 comments on commit 457cb64

Please sign in to comment.