2022-06-13 22:50:18 +00:00
|
|
|
name: Publish
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published, edited]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-10-25 22:08:01 +00:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
|
|
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
|
2022-06-13 22:50:18 +00:00
|
|
|
with:
|
2024-01-26 23:17:30 +00:00
|
|
|
node-version: 20
|
2022-11-15 15:57:34 +00:00
|
|
|
cache: "npm"
|
2022-11-13 22:05:17 +00:00
|
|
|
- run: npm ci
|
2022-11-13 22:50:40 +00:00
|
|
|
- run: npm run build
|
2022-11-13 22:11:09 +00:00
|
|
|
- run: npm run package
|
2023-05-23 21:06:28 +00:00
|
|
|
- run: sed -i 's%lib/src/main.js%dist/index.js%' package.json
|
2024-03-01 00:04:50 +00:00
|
|
|
- uses: JasonEtco/build-and-tag-action@dd5e4991048c325f6d85b4155e586fc211c644da # v2
|
2022-06-13 22:50:18 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ github.token }}
|