-
Notifications
You must be signed in to change notification settings - Fork 44
47 lines (38 loc) · 1.04 KB
/
legacy.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: "react-to-webcomponent"
on:
push:
workflow_dispatch:
inputs:
segment:
description: "The version segment to increment: major, minor, patch, or prerelease."
required: true
preId:
description: "Appended to the prerelease segment. (default: \"\")"
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Verify
uses: ./.github/actions/job-verify
publish:
if: github.event_name == 'workflow_dispatch'
needs: verify
concurrency:
group: "publish"
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Publish
uses: ./.github/actions/job-publish
with:
directory: legacy
npm-token: ${{ secrets.NPM_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
segment: ${{ github.event.inputs.segment }}
preId: ${{ github.event.inputs.preId }}