Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,27 @@ jobs:
run: pnpm build

- name: Publish to npm
run: pnpm publish --no-git-checks --access public
run: |
# Prereleases MUST NOT land on the `latest` dist-tag, or a plain
# `npm install @authorizerdev/authorizer-js` would pull an RC.
if [[ "${GITHUB_REF_NAME}" == *-rc.* ]]; then
pnpm publish --no-git-checks --access public --tag rc
elif [[ "${GITHUB_REF_NAME}" == *-beta.* ]]; then
pnpm publish --no-git-checks --access public --tag beta
else
pnpm publish --no-git-checks --access public
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create GitHub Release
run: |
PRERELEASE=""
if [[ "${GITHUB_REF_NAME}" == *-rc.* || "${GITHUB_REF_NAME}" == *-beta.* ]]; then
PRERELEASE="--prerelease"
fi
gh release create "${{ github.ref_name }}" \
--title "${{ github.ref_name }}" \
--generate-notes
--generate-notes $PRERELEASE
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@authorizerdev/authorizer-js",
"version": "3.2.1",
"version": "3.3.0-rc.0",
"packageManager": "pnpm@8.15.6",
"author": "Lakhan Samani",
"license": "MIT",
Expand Down
Loading