-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump version and fix the publish workflow (#26)
* Add publish worklfow * Remove release workflow * Bump package version
- Loading branch information
1 parent
392ad33
commit f281a16
Showing
3 changed files
with
32 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Publish Package to npmjs | ||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "The version to release. The version should be the same as version in package.json. For example, 1.0.0" | ||
required: true | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
if: github.event_name == 'workflow_dispatch' | ||
with: | ||
fetch-tags: true | ||
ref: ${{ inputs.version }} | ||
|
||
- uses: actions/checkout@v4 | ||
if: github.event_name != 'workflow_dispatch' | ||
|
||
# Setup .npmrc file to publish to npm | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: yarn | ||
- run: yarn publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@dapplion/benchmark", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"main": "lib/index.js", | ||
"repository": "[email protected]:dapplion/benchmark.git", | ||
"author": "dapplion <[email protected]>", | ||
|