-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
43 additions
and
2 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,34 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- workflow | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: oven-sh/setup-bun@v2 | ||
with: | ||
bun-version: latest | ||
registry-url: 'https://registry.npmjs.org' | ||
scope: "@kanamone" | ||
- run: bun install --frozen-lockfile | ||
- run: bun run test | ||
- run: bun run build | ||
- name: Create Release Pull Request or Publish to npm | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
publish: bun run release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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,16 +1,23 @@ | ||
{ | ||
"name": "edge-id2", | ||
"version": "0.0.1", | ||
"name": "@kanamone/edge-id2", | ||
"scripts": { | ||
"prebuild": "bun run tsc --build", | ||
"build": "bun run build.ts", | ||
"test": "jest" | ||
"test": "jest", | ||
"prepublishOnly": "bun run build", | ||
"release": "changeset publish" | ||
}, | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
"lib" | ||
], | ||
"author": "AOKI Yuto <[email protected]>", | ||
"homepage": "https://github.com/kanamone/edge-id2", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@changesets/cli": "^2.27.7", | ||
"@types/bun": "latest", | ||
"@types/jest": "^29.5.12", | ||
"jest": "^29.7.0", | ||
|