2023-08-08 20:03:11 +02:00
|
|
|
name: Publish
|
|
|
|
|
2023-08-08 21:50:15 +02:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
2023-08-08 20:03:11 +02:00
|
|
|
on:
|
|
|
|
release:
|
2023-08-11 00:09:55 +02:00
|
|
|
types: [released, edited]
|
2023-08-08 20:03:11 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
ref: ${{ github.event.release.tag_name }}
|
|
|
|
|
|
|
|
- name: Setup Node.js
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: "latest"
|
|
|
|
cache: "npm"
|
|
|
|
|
|
|
|
- name: Install modules and build
|
|
|
|
run: npm ci && npm run build
|
|
|
|
|
|
|
|
- uses: JasonEtco/build-and-tag-action@v2
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ github.token }}
|