ci: set registry-url #36
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: release | |
on: | |
push: | |
branches: [main] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 9.13.2 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
registry-url: 'https://registry.npmjs.org/' | |
node-version: 20.* | |
cache: pnpm | |
- name: Configure committer | |
run: | | |
git config --global user.name ${GITHUB_ACTOR} | |
git config --global user.email ${GITHUB_ACTOR}@users.noreply.github.com | |
- name: npm install, build, and release | |
run: | | |
pnpm i --frozen-lockfile | |
pnpx standard-version | |
npm publish | |
git push --follow-tags | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
CI: true |