2022-06-13 22:50:18 +00:00
|
|
|
name: Publish
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published, edited]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 16
|
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
|
2022-06-13 22:50:18 +00:00
|
|
|
- uses: JasonEtco/build-and-tag-action@v1
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ github.token }}
|