Skip to content

fix cd error of pnpm #4

fix cd error of pnpm

fix cd error of pnpm #4

Workflow file for this run

name: CD
on:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Setup pnpm
run: npm install -g pnpm
- run: pnpm install
- run: pnpm run ci
- uses: actions/upload-artifact@v2
with:
name: coverage
path: coverage
deploy:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Setup pnpm
run: npm install -g pnpm
- run: pnpm install
- run: pnpm run make
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Create GitHub Release
# id: create_release
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# draft: false
# prerelease: false