Skip to content

v3.0.2

v3.0.2 #13

Workflow file for this run

name: Publish on release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Run npm install and build
run: |
npm install
npm run build
- uses: actions/upload-artifact@v4
with:
name: packages
path: packages
publish-npm:
name: Publish npm
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- uses: actions/download-artifact@v4
with:
name: packages
path: packages
- name: Publish autocomplete
working-directory: ./packages/autocomplete
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Publish autocomplete-js
working-directory: ./packages/autocomplete-js
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Publish autocomplete-vue
working-directory: ./packages/autocomplete-vue
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}