Update package-lock, add back bun.lockb #3
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 JS package @teamhanko/passkeys-next-auth-provider | |
on: | |
push: | |
tags: | |
- "@teamhanko/passkeys-next-auth-provider@*" | |
defaults: | |
run: | |
working-directory: packages/js/passkeys-next-auth-provider | |
jobs: | |
check-matching-versions: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: get-npm-version | |
id: package-version | |
uses: martinbeentjes/npm-get-version-action@main | |
with: | |
path: packages/js/passkeys-next-auth-provider | |
- run: | | |
version=$(echo $GITHUB_REF | cut -f3 -d'@') | |
echo "git_tag_version=$version" >> $GITHUB_OUTPUT | |
id: tag-version | |
- run: echo ${{ steps.tag-version.outputs.git_tag_version }} | |
- name: Version correctly set check | |
if: steps.package-version.outputs.current-version != steps.tag-version.outputs.git_tag_version | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
core.setFailed('version in package.json is not equal to git tag version!') | |
build-and-publish: | |
needs: check-matching-versions | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
registry-url: 'https://registry.npmjs.org' | |
- uses: oven-sh/setup-bun@v1 | |
- run: bun i | |
- run: bun run build | |
- name: publish passkeys-next-auth-provider | |
run: npm publish --access=public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISHING_SECRET }} |