2021-02-06 16:30:13 +09:00
|
|
|
name: publish
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
jobs:
|
|
|
|
main:
|
2021-07-06 13:44:37 +09:00
|
|
|
runs-on: ubuntu-latest
|
2021-02-06 16:30:13 +09:00
|
|
|
steps:
|
2022-03-01 19:12:49 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-02-25 08:12:33 +00:00
|
|
|
- uses: actions/setup-node@v3
|
2021-02-06 16:30:13 +09:00
|
|
|
with:
|
2021-07-06 13:51:51 +09:00
|
|
|
node-version: "lts/*"
|
2021-07-06 13:50:51 +09:00
|
|
|
cache: yarn
|
|
|
|
registry-url: https://registry.npmjs.org/
|
2021-02-06 16:30:13 +09:00
|
|
|
- run: yarn
|
|
|
|
- name: Git configuration.
|
|
|
|
run: |
|
|
|
|
git config --global user.email bot@example
|
|
|
|
git config --global user.name bot
|
|
|
|
- name: Publish.
|
|
|
|
run: |
|
2021-02-06 17:12:14 +09:00
|
|
|
npm version patch
|
|
|
|
git push --atomic --tags origin HEAD
|
2021-02-06 16:30:13 +09:00
|
|
|
npm publish
|
2021-07-06 13:50:51 +09:00
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|