Skip to content

Commit

Permalink
ci: manually publish the package
Browse files Browse the repository at this point in the history
  • Loading branch information
rabi-siddique committed Nov 18, 2024
1 parent f2bee47 commit 0d0b33d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
name: Release Package
name: Release @agoric/synpress

on:
push:
branches:
- master
workflow_dispatch:
inputs:
version:
description: 'release: major|minor|patch'
required: true
default: patch

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
release:
Expand All @@ -19,12 +26,11 @@ jobs:
with:
node-version: 18

- name: Authenticate with npm and show .npmrc
- name: Authenticate with npm
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
cat ~/.npmrc | sed 's/:_authToken=.*/:_authToken=[SECURED]/'
- name: Install pnpm
run: npm install -g pnpm
Expand All @@ -36,11 +42,9 @@ jobs:
run: |
git config --global user.name "${{ secrets.GIT_USER }}"
git config --global user.email "${{ secrets.GIT_EMAIL }}"
echo "Configured Git user.name: $(git config --global user.name)"
echo "Configured Git user.email: $(git config --global user.email)"
- name: Release with release-it
run: npx --ignore-existing release-it
run: npx release-it --increment ${{ github.event.inputs.version }}
env:
GIT_AUTHOR_NAME: ${{ secrets.GIT_USER }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_EMAIL }}
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
"tagName": "${version}",
"tagAnnotation": "Release v${version}",
"push": true
},
"github": {
"release": true
}
},
"scripts": {
Expand Down

0 comments on commit 0d0b33d

Please sign in to comment.