V3.0.0: Switch to Node.js & Cache the installation to avoid redownloading #1
Workflow file for this run
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-action | |
on: | |
release: | |
types: released | |
concurrency: ${{ github.workflow }} | |
jobs: | |
publish-action: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: npm | |
- run: npm ci | |
- run: npm run build | |
- run: rm -rf node_modules | |
- uses: actions4git/setup-git@v1 | |
- run: git add -Af && git commit -m 'npm run build' | |
- run: git tag -f "$TAG" && git push -f origin "$TAG" | |
env: | |
TAG: ${{ github.event.release.tag_name }} | |
- uses: actions/[email protected] | |
with: | |
source-tag: ${{ github.event.release.tag_name }} |