v1.1.2 #8
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: 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 }} |