v0.3.0 #59
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 NPM Package | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: "0" | |
token: ${{ secrets.ORY_BOT_PAT }} | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- run: npm run initialize | |
- run: npm run build:clean | |
- run: git checkout main | |
- run: | | |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN_AENEASR }}" > ~/.npmrc | |
- run: make format | |
- run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "ory-bot" | |
git add -A | |
- uses: actions/github-script@v7 | |
id: compute-dist-tag | |
with: | |
script: | | |
const isPrerelease = context.payload.release.prerelease; | |
return isPrerelease ? 'next' : 'latest'; | |
result-encoding: string | |
- run: | | |
npx lerna publish -y ${{ github.event.release.tag_name }} --dist-tag="${{ steps.compute-dist-tag.outputs.result }}" --message 'chore(release): bump version to %s' --no-git-tag-version |