-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: automate the release and publishing with semantic-release (#1683)
- Loading branch information
Showing
43 changed files
with
17,218 additions
and
11,591 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
# | ||
|
||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- next | ||
- ^[0-9]+(.[0-9]+)?.x$ | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write # to enable use of OIDC for npm provenance | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
cache: 'npm' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install dependencies | ||
run: npm ci --no-audit | ||
|
||
- name: Security | ||
run: npm audit --omit dev && npm audit signatures | ||
|
||
- name: Quality | ||
run: npm run circular-deps & npm run lint | ||
|
||
- name: Test | ||
run: npm run e2e & npm run test | ||
|
||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PAT }} | ||
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }} | ||
run: npm run release |
Oops, something went wrong.