Skip to content

Commit

Permalink
Merge branch 'workflow'
Browse files Browse the repository at this point in the history
  • Loading branch information
uneco committed Jul 4, 2024
2 parents 7aeaea1 + 6ffef49 commit 9e8b019
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
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 }}
Binary file modified bun.lockb
Binary file not shown.
11 changes: 9 additions & 2 deletions package.json
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",
Expand Down

0 comments on commit 9e8b019

Please sign in to comment.