-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 938 Bytes
/
publish.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
on:
push:
branches:
- main
name: publish
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: automated version bump
uses: "phips28/gh-action-bump-version@master"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
target-branch: main
commit-message: "CI: bumps version to {{version}} [skip ci]"
- name: write to .npmrc
run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > ~/.npmrc
- name: install
run: npm install --legacy-peer-deps
- name: build
run: npm run build
- name: publish
run: cd dist && npm publish --access=public
- name: discord notification
uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}