Skip to content

Commit 6de7c30

Browse files
committed
ci: manually publish the package
1 parent f2bee47 commit 6de7c30

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
name: Release Package
1+
name: Release @agoric/synpress
22

33
on:
4-
push:
5-
branches:
6-
- master
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'release: major|minor|patch'
8+
required: true
9+
default: patch
10+
11+
concurrency:
12+
group: ${{ github.head_ref || github.run_id }}
13+
cancel-in-progress: true
714

815
jobs:
916
release:
@@ -24,7 +31,6 @@ jobs:
2431
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2532
run: |
2633
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
27-
cat ~/.npmrc | sed 's/:_authToken=.*/:_authToken=[SECURED]/'
2834
2935
- name: Install pnpm
3036
run: npm install -g pnpm
@@ -36,11 +42,9 @@ jobs:
3642
run: |
3743
git config --global user.name "${{ secrets.GIT_USER }}"
3844
git config --global user.email "${{ secrets.GIT_EMAIL }}"
39-
echo "Configured Git user.name: $(git config --global user.name)"
40-
echo "Configured Git user.email: $(git config --global user.email)"
4145
4246
- name: Release with release-it
43-
run: npx --ignore-existing release-it
47+
run: npx release-it --increment ${{ github.event.inputs.version }}
4448
env:
4549
GIT_AUTHOR_NAME: ${{ secrets.GIT_USER }}
4650
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_EMAIL }}

0 commit comments

Comments
 (0)