mithril-vndb/.github/workflows/merge.yml
Claudia Meadows 1b0899b469
Migrate to Node 20, clean up workflows (#2902)
Tests still appear to fail per #2898. Unfortunately, I need actions/runner#2347 to ignore the test failures properly - I need them to be warnings, not hard errors.
2024-09-23 04:54:05 -07:00

29 lines
772 B
YAML

name: merge
on:
push:
branches: [ master ]
workflow_dispatch:
concurrency: prr:deploy
jobs:
merge:
runs-on: ubuntu-latest
steps:
- run: git clone --depth=0 https://github.com/MithrilJS/mithril.js.git && cd mithril.js
- uses: ./.github/actions/setup
- run: npm run build
- run: npx pr-release merge --target master --source next --commit --force --clean --changelog ./docs/recent-changes.md --compact --minimize-semver-change
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# The following will publish the release to npm
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
name: Setup NPM Auth
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish
name: Publish