chore(deps): update dependency semver to ^7.7.0 #7
Workflow file for this run
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: | |
pull_request_target: | |
types: [closed] | |
branches: | |
- main | |
# Remove default permissions of GITHUB_TOKEN for security | |
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs | |
permissions: {} | |
jobs: | |
release: | |
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'v') | |
concurrency: | |
group: release | |
permissions: | |
contents: write | |
id-token: write | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- run: corepack enable | |
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0 | |
with: | |
node-version: lts/* | |
registry-url: 'https://registry.npmjs.org/' | |
cache: pnpm | |
- name: 📦 Install dependencies | |
run: pnpm install | |
- name: 🛠 Build project | |
run: pnpm build | |
- name: 📦 Release | |
run: node ./scripts/release.mjs | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_RELEASE_TOKEN }} | |
NPM_CONFIG_PROVENANCE: true | |
- name: 🏷️ Create tag | |
run: | | |
TAG_NAME=${{ github.event.pull_request.head.ref }} | |
git tag $TAG_NAME | |
git push origin $TAG_NAME | |
- name: 🛳️ Create GitHub release | |
run: gh release create $TAG_NAME --title "$RELEASE_NAME" --notes "$BODY" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAG_NAME: ${{ github.event.pull_request.head.ref }} | |
RELEASE_NAME: ${{ github.event.pull_request.head.ref }} | |
BODY: ${{ github.event.pull_request.body }} |