ADDED: prohibition notice for AI-generated images #61
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 new version | |
on: | |
push: | |
branches: [main] | |
paths: | |
- ".github/workflows/release-new-version.yml" | |
- "src/**" | |
- "types/**" | |
- "package.json" | |
jobs: | |
updateVersion: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: "npm" | |
- name: Configure git | |
run: | | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "github-actions[bot]" | |
- run: npm ci | |
- name: Typecheck | |
run: npm run config typecheckOnce | |
- env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm version patch --allow-same-version | |
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} | |
npm publish | |
git push | |
git push --tags --force | |
gh release create "v$(node -p -e "require('./package.json').version")" |