Skip to content

Publish @fusionauth/vue-sdk #3

Publish @fusionauth/vue-sdk

Publish @fusionauth/vue-sdk #3

name: Publish @fusionauth/vue-sdk
on: workflow_dispatch
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Vue SDK - Install packages
run: yarn install --frozen-lockfile
- name: Build core package
run: yarn build:core
- name: Vue SDK - Test
run: yarn test:sdk-vue
publish-sdk-vue:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: yarn install --frozen-lockfile
- name: Vue SDK - Build
run: yarn build:sdk-vue
- name: Vue SDK - Publish
working-directory: ./packages/sdk-vue/dist
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_VUE_SDK }}