chore: update package repo url #8
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
name: Release from Master on Push | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
HUSKY: 0 | |
jobs: | |
commit-lint: | |
name: Commit Lint | |
uses: ./.github/workflows/commit-lint-reusable.yml | |
secrets: inherit | |
code-style: | |
name: Code Style | |
uses: ./.github/workflows/code-style-reusable.yml | |
secrets: inherit | |
test: | |
name: Run tests and report coverage | |
uses: ./.github/workflows/test-reusable.yml | |
secrets: inherit | |
release: | |
name: Build and release npm package | |
needs: [commit-lint, code-style, test] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node.js and Cache Dependencies | |
uses: ./.github/actions/setup-node | |
- name: Build | |
run: npm run build | |
- name: Release npm package | |
uses: cycjimmy/semantic-release-action@v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |