29 lines
772 B
YAML
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=1 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
|