node-web-i2c/.github/workflows/publish.yml

27 lines
654 B
YAML
Raw Normal View History

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:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
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 }}