This repository was archived by the owner on Nov 10, 2022. It is now read-only.
File tree 4 files changed +38
-19
lines changed
4 files changed +38
-19
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ branches :
4
+ - main
5
+ name : release-please
6
+ jobs :
7
+ release-please :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : GoogleCloudPlatform/release-please-action@v2
11
+ id : release
12
+ with :
13
+ token : ${{ secrets.GITHUB_TOKEN }}
14
+ release-type : node
15
+ package-name : " @opentelemetry/api"
16
+ # The logic below handles the npm publication:
17
+ - uses : actions/checkout@v2
18
+ # these if statements ensure that a publication only occurs when
19
+ # a new release is created:
20
+ if : ${{ steps.release.outputs.release_created }}
21
+ - uses : actions/setup-node@v1
22
+ with :
23
+ node-version : 14
24
+ registry-url : ' https://registry.npmjs.org'
25
+ if : ${{ steps.release.outputs.release_created }}
26
+ - run : npm install
27
+ if : ${{ steps.release.outputs.release_created }}
28
+ - run : npm run compile
29
+ if : ${{ steps.release.outputs.release_created }}
30
+ - run : npm publish
31
+ env :
32
+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
33
+ if : ${{ steps.release.outputs.release_created }}
Original file line number Diff line number Diff line change
1
+ # version.ts file is autogenerated at compile time
2
+ src /version.ts
3
+
1
4
# Logs
2
5
logs
3
6
* .log
Original file line number Diff line number Diff line change 12
12
},
13
13
"repository" : " https://github.com/open-telemetry/opentelemetry-js-api.git" ,
14
14
"scripts" : {
15
- "build" : " npm run compile" ,
16
15
"clean" : " tsc --build --clean tsconfig.json tsconfig.esm.json" ,
17
16
"codecov:browser" : " nyc report --reporter=json && codecov -f coverage/*.json -p ." ,
18
17
"codecov" : " nyc report --reporter=json && codecov -f coverage/*.json -p ." ,
18
+ "precompile" : " npm run version" ,
19
19
"compile" : " tsc --build tsconfig.json tsconfig.esm.json" ,
20
20
"docs" : " typedoc" ,
21
21
"docs:deploy" : " gh-pages --dist docs/out" ,
25
25
"test:browser" : " nyc karma start --single-run" ,
26
26
"test" : " nyc ts-mocha -p tsconfig.json test/**/*.test.ts" ,
27
27
"version" : " node scripts/version-update.js" ,
28
+ "prewatch" : " npm run version" ,
28
29
"watch" : " tsc --build --watch"
29
30
},
30
31
"keywords" : [
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments