@mafintosh/ci-testing 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +22 -0
- package/.github/workflows/release.yml +14 -3
- package/README.md +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
name: Publish
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
types: [closed]
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
jobs:
|
|
8
|
+
approve-release:
|
|
9
|
+
if: "${{ github.event.pull_request.merged == true && startsWith(github.event.pull_request.title, 'Release: ') }}"
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
environment: release
|
|
12
|
+
steps:
|
|
13
|
+
- run: echo "Approved"
|
|
14
|
+
publish:
|
|
15
|
+
needs: approve-release
|
|
16
|
+
if: "${{ github.event.pull_request.merged == true && startsWith(github.event.pull_request.title, 'Release: ') }}"
|
|
17
|
+
permissions:
|
|
18
|
+
contents: write
|
|
19
|
+
id-token: write
|
|
20
|
+
uses: mafintosh/actions/.github/workflows/auto-publish.yml@main
|
|
21
|
+
secrets:
|
|
22
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
name: Release to public npm
|
|
2
|
-
run-name: "Release (${{ inputs.bump }})"
|
|
3
|
-
|
|
2
|
+
run-name: "Release (${{ inputs.bump }}${{ inputs.preid && format('-{0}', inputs.preid) || '' }})"
|
|
4
3
|
on:
|
|
5
4
|
workflow_dispatch:
|
|
6
5
|
inputs:
|
|
@@ -12,13 +11,25 @@ on:
|
|
|
12
11
|
- patch
|
|
13
12
|
- minor
|
|
14
13
|
- major
|
|
14
|
+
- prerelease
|
|
15
|
+
preid:
|
|
16
|
+
description: Pre-release identifier
|
|
17
|
+
required: false
|
|
18
|
+
type: string
|
|
19
|
+
tag:
|
|
20
|
+
description: npm dist-tag
|
|
21
|
+
required: false
|
|
22
|
+
default: 'latest'
|
|
23
|
+
type: string
|
|
15
24
|
permissions:
|
|
16
25
|
contents: write
|
|
17
26
|
id-token: write
|
|
18
27
|
jobs:
|
|
19
28
|
release:
|
|
20
|
-
uses: mafintosh/actions/.github/workflows/public-publish.yml@
|
|
29
|
+
uses: mafintosh/actions/.github/workflows/public-publish.yml@main
|
|
21
30
|
with:
|
|
22
31
|
bump: ${{ inputs.bump }}
|
|
32
|
+
preid: ${{ inputs.preid }}
|
|
33
|
+
tag: ${{ inputs.tag }}
|
|
23
34
|
secrets:
|
|
24
35
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
hello
|
|
1
|
+
hello world
|