Skip to content

Commit

Permalink
try to authenticate
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyen Le Vu Long <[email protected]>
  • Loading branch information
longngn committed Nov 16, 2023
1 parent cf9a93f commit f5f399e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pump-version.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Bump Version on Merge
name: Bump version on Merge

on:
push:
Expand All @@ -10,23 +10,23 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
- name: Checkout code
uses: actions/checkout@v4

- name: Calculate next Version
- name: Calculate next version
run: |
# Get the current version from the subdirectory's package.json
current_version=$(jq -r '.version' package.json)
# Calculate and append the next version directly into GITHUB_ENV in one line
echo "NEXT_VERSION=$(echo "$current_version" | awk -F'[-.]' '{print $1"."$2"."$3"-minswap."$5+1}')" >> "$GITHUB_ENV"
- name: Install Dependencies
- name: Install dependencies
run: |
npm install --ignore-scripts
npm install -g wasm-pack
- name: Bump Version and Publish
- name: Bump version and publish
run: |
./scripts/pump-version.sh ${{ env.NEXT_VERSION }}
env:
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//registry.npmjs.org/:_authToken=${NPM_TOKEN}

0 comments on commit f5f399e

Please sign in to comment.