chore: update license to AGPL v3 [skip-ci] #72
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 | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write # because we want our workflow to update the package json of the packages with the latest version number | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
release: | |
if: ${{ !contains(github.event.head_commit.message, '[skip release]') }} | |
environment: Production | |
name: Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
id-token: write | |
env: | |
HUSKY: 0 | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup node.js LTS | |
uses: actions/setup-node@v3 | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
with: | |
run_install: false | |
- name: Install dependencies | |
run: pnpm i --frozen-lockfile | |
- name: Build the packages | |
run: pnpm build | |
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies | |
run: npm audit signatures | |
- name: Release | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} | |
NPM_USERNAME: "sarthakdev" | |
NPM_PASSWORD: ${{ secrets.NPM_PASSWORD }} | |
NPM_EMAIL: "[email protected]" | |
run: pnpm semantic-release |