-
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
9 changed files
with
3,228 additions
and
27 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
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,22 @@ | ||
name: release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
release: | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: write # semantic-releaseがrepositoryへのpush権限を要求する | ||
issues: read # semantic-releaseがissueを検索できるように | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
- run: yarn install --pure-lockfile | ||
- run: yarn build | ||
- env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: yarn semantic-release |
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 +1,2 @@ | ||
node_modules | ||
dist |
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,84 @@ | ||
{ | ||
"plugins": [ | ||
[ | ||
"@semantic-release/commit-analyzer", | ||
{ | ||
"releaseRules": [ | ||
{ | ||
"type": "refactor", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "chore", | ||
"release": "patch" | ||
}, | ||
{ | ||
"type": "major", | ||
"release": "major" | ||
} | ||
] | ||
} | ||
], | ||
[ | ||
"@semantic-release/release-notes-generator", | ||
{ | ||
"preset": "conventionalcommits", | ||
"presetConfig": { | ||
"types": [ | ||
{ | ||
"type": "fix(deps)", | ||
"section": "update dependency" | ||
}, | ||
{ | ||
"type": "chore(deps)", | ||
"section": "update dependency" | ||
}, | ||
{ | ||
"type": "major", | ||
"section": "BREAKING CHANGE" | ||
}, | ||
{ | ||
"type": "feat", | ||
"section": "Features" | ||
}, | ||
{ | ||
"type": "fix", | ||
"section": "Bug Fixes" | ||
}, | ||
{ | ||
"type": "chore", | ||
"section": "chore" | ||
}, | ||
{ | ||
"type": "docs", | ||
"section": "docs" | ||
}, | ||
{ | ||
"type": "style", | ||
"section": "style" | ||
}, | ||
{ | ||
"type": "refactor", | ||
"section": "refactor" | ||
}, | ||
{ | ||
"type": "perf", | ||
"section": "perf" | ||
}, | ||
{ | ||
"type": "test", | ||
"section": "test" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
[ | ||
"@semantic-release/npm", | ||
{ | ||
"npmPublish": true | ||
} | ||
], | ||
"@semantic-release/github" | ||
] | ||
} |
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,3 +1,3 @@ | ||
# OpenTelemetry SDK for Browser JS | ||
|
||
[![CI](https://github.com/YunosukeY/otel-web-sdk/actions/workflows/ci.yaml/badge.svg?branch=master&event=push)](https://github.com/YunosukeY/otel-web-sdk/actions/workflows/ci.yaml) | ||
[![CI](https://github.com/YunosukeY/otel-sdk-web/actions/workflows/ci.yaml/badge.svg?branch=master&event=push)](https://github.com/YunosukeY/otel-sdk-web/actions/workflows/ci.yaml) |
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
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,44 @@ | ||
import { nodeResolve } from "@rollup/plugin-node-resolve"; | ||
import commonjs from "@rollup/plugin-commonjs"; | ||
import json from "@rollup/plugin-json"; | ||
import typescript from "@rollup/plugin-typescript"; | ||
|
||
import pkg from "./package.json"; | ||
|
||
export default [ | ||
{ | ||
input: "src/index.ts", | ||
output: [ | ||
{ | ||
file: pkg.module, | ||
format: "es", | ||
sourcemap: "inline", | ||
}, | ||
], | ||
plugins: [ | ||
// commonjsで書かれた依存ライブラリを読み込めるようにする | ||
nodeResolve({ | ||
browser: true, | ||
}), | ||
commonjs(), | ||
|
||
// typescriptによるコンパイル | ||
// rollup用のtsconfigを読み込むことでjsにコンパイルする | ||
// | ||
// targetをes5にしているため、typescriptが可能な範囲で構文の変換が行われる | ||
// これは主にoptional chainingなどtypescriptが先行して導入している構文の変換のため | ||
// | ||
// この時distディレクトリに型定義ファイルを出力する(declarationDirの指定が必要) | ||
typescript({ | ||
tsconfig: "tsconfig.rollup.json", | ||
declaration: true, | ||
declarationDir: "dist", | ||
}), | ||
|
||
// jsonのimportを処理 | ||
json({ | ||
compact: true, | ||
}), | ||
], | ||
}, | ||
]; |
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,6 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"module": "ESNext" | ||
} | ||
} |
Oops, something went wrong.