chore: custom eslint config for test project #23
This file contains hidden or 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 & publish on `package.json#version` bump | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish-on-release: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
registry-url: "https://registry.npmjs.org" | |
- run: yarn | |
- run: yarn test | |
- uses: Makepad-fr/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
name: "$newVersion" | |
body: "✨ New release $newVersion" | |
draft: "false" | |
pre-release: "auto" | |
generate-release-note: "true" | |
tag-name: "$newVersion" | |
- run: yarn build | |
- run: yarn publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |