Merge pull request #500 from akashic-games/renovate/rimraf-6.x #159
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 and Release | |
on: | |
push: | |
branches: | |
- main | |
env: | |
NODE_VERSION: 18 | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
name: Publish and Release | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: npm | |
- name: Prepare | |
run: | | |
npm ci | |
npm run build | |
npm test | |
- name: Publish and Release | |
uses: akashic-games/action-release@v2 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
npm_token: ${{ secrets.NPM_TOKEN }} |