This repository has been archived by the owner on Aug 22, 2024. It is now read-only.
Fix publish again #3
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 | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
id-token: write | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org' | |
- name: Build | |
run: npm ci | |
- name: Publish | |
run: | | |
npm publish | |
npm version patch | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}} | |
- name: Push updated version | |
run: | | |
git config --global user.name "github_ci" | |
git config --global user.email "[email protected]" | |
git add git add package*.json | |
git commit -m "Version up [skip ci]" | |
git push | |