Skip to content

v1.1.2

v1.1.2 #8

Workflow file for this run

name: Publish to NPM
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Copy README
uses: canastro/copy-file-action@master
with:
source: 'README.md'
target: 'packages/vueginate/README.md'
- name: Copy LICESE
uses: canastro/copy-file-action@master
with:
source: 'LICENSE'
target: 'packages/vueginate/LICENSE'
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- name: Install packages
run: pnpm install --frozen-lockfile
- name: Test
run: pnpm test
- name: Build
run: pnpm build
- name: Publish package
run: pnpm publish --no-git-checks --filter vueginate
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}