Skip to content

Commit

Permalink
remove updating version
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray committed Sep 14, 2023
1 parent 82bc66b commit 34c9ce8
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions .github/workflows/noir-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: Release and Publish Noir Js

on:
workflow_dispatch:
inputs:
version:
description: "Version number"
required: false

jobs:
release-noir-js:
Expand All @@ -15,17 +11,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Bump version
working-directory: ./tooling/noir_js
id: bump_version
run: |
if [ -z "${{ github.event.inputs.version }}" ]; then
NEW_VERSION=$(npm version patch --no-git-tag-version)
else
NEW_VERSION=$(npm version ${{ github.event.inputs.version }} --no-git-tag-version)
fi
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
- name: Install dependencies
run: yarn install --immutable

Expand All @@ -36,16 +21,4 @@ jobs:
working-directory: ./tooling/noir_js
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

- name: Configure git
run: |
git config user.name kevaundray
git config user.email [email protected]
- name: Commit updates
run: |
git add yarn.lock
git add tooling/noir_js/package.json
git commit -m "chore: Update noir-js to ${{ env.NEW_VERSION }}"
git push
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 comments on commit 34c9ce8

Please sign in to comment.