Publish release #3
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 release | |
on: | |
release: | |
types: | |
- published | |
- edited | |
jobs: | |
publish-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.release.tag_name }} | |
fetch-depth: 0 # fetch full history for Git tests | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: npm | |
- name: Test and create dist files | |
run: npm ci && npm run all | |
- name: Push dist to new tag | |
uses: teunmooij/github-versioned-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
include: |- | |
dist/licenses.txt | |
dist/index.js | |
README.md | |
LICENSE | |
action.yml | |
- name: Set release to published | |
uses: irongut/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
id: ${{ github.event.release.id }} | |
draft: false | |
prerelease: false |