Skip to content

chore(deps): update dependency vitest to v3 #621

chore(deps): update dependency vitest to v3

chore(deps): update dependency vitest to v3 #621

on:
push:
branches:
- main
tags:
- authenticator-remote-jwt-v*
pull_request:
permissions:
contents: write
jobs:
ci-and-release-on-tag:
name: Build (and release if tag was pushed)
runs-on: ubuntu-22.04
defaults:
run:
working-directory: "authenticator/remote-jwt"
steps:
- uses: actions/checkout@v4
- name: "Build and test"
run: |
npm install
npx wrangler publish --dry-run --outdir dest/es6
npm run build-service-worker
- uses: awalsh128/cache-apt-pkgs-action@latest
if: startsWith(github.ref, 'refs/tags/authenticator-remote-jwt-v')
with:
packages: jq
version: 1.0
- name: "Check tag version match"
if: startsWith(github.ref, 'refs/tags/authenticator-remote-jwt-v')
run: |
tag_version=$(echo "$REF" | sed "s%refs/tags/authenticator-remote-jwt-v%%")
declared_version=$(jq .version package.json --raw-output)
if [ "$tag_version" != "$declared_version" ]; then
exit 1
fi
env:
REF: ${{ github.ref }}
- name: Release
if: startsWith(github.ref, 'refs/tags/authenticator-remote-jwt-v')
uses: softprops/action-gh-release@v2
with:
files: |
authenticator/remote-jwt/dest/es6/index.es6.js
authenticator/remote-jwt/dest/service-worker/index.service.js