Skip to content

Commit

Permalink
ci: update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jcwillox committed Nov 2, 2024
1 parent 33bb97f commit d8bb741
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,27 @@ jobs:
fetch-depth: 0

- name: "Setup pnpm"
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4

- name: "Setup node"
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: "pnpm"

- name: "Install dependencies"
run: pnpm install

- name: "Release Package 📦"
run: pnpm dlx @jcwillox/semantic-release-config
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SEMANTIC_RELEASE_GITHUB_DRAFT: ${{ inputs.draft }}
SEMANTIC_RELEASE_FORCE_RELEASE: ${{ inputs.release_type }}
SEMANTIC_RELEASE_CMD_PREPARE: "pnpm run build"
SEMANTIC_RELEASE_CMD_SUCCESS: |
VERSION=$(echo "${nextRelease.version}" | cut -d "." -f 1)
git tag -f "v$VERSION"
git push origin "v$VERSION" --tags --force
SEMANTIC_RELEASE_GIT_ASSETS: "dist/index.js"
SEMANTIC_RELEASE_GIT_MESSAGE: "release: ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"

0 comments on commit d8bb741

Please sign in to comment.