-
Notifications
You must be signed in to change notification settings - Fork 43
47 lines (38 loc) · 1.02 KB
/
core.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: "@r2wc/core"
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: core
npm-token: ${{ secrets.NPM_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
segment: ${{ github.event.inputs.segment }}
preId: ${{ github.event.inputs.preId }}