v5.20.0 #63
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: npm-publish | |
on: | |
release: | |
types: [created] | |
jobs: | |
publish-gpr: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 9.1.3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: https://registry.npmmirror.com | |
cache: pnpm | |
- run: pnpm store path | |
- run: pnpm install | |
# - run: npx changelogithub --no-group | |
# continue-on-error: true | |
# env: | |
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
# - run: git config --global user.email "saqqdy@qq.com" | |
# - run: git config --global user.name "saqqdy" | |
- run: pnpm dist | |
env: | |
NODE_OPTIONS: --max-old-space-size=6144 | |
- name: Gen .npmrc | |
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ./.npmrc | |
- run: pnpm pub | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
- run: curl -X PUT -d "sync_upstream=true" "https://registry-direct.npmmirror.com/js-cool/sync" |