Commit 38cda03 1 parent 7f71485 commit 38cda03 Copy full SHA for 38cda03
File tree 6 files changed +91
-38
lines changed
6 files changed +91
-38
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish Package to npmjs
2
+
3
+ runs :
4
+ using : " composite"
5
+ steps :
6
+ - uses : actions/checkout@v4
7
+
8
+ - name : Use Node.js 18.x
9
+ uses : actions/setup-node@v4
10
+ with :
11
+ node-version : ' 18.x'
12
+ registry-url : ' https://registry.npmjs.org'
13
+
14
+ - name : Cache dependencies
15
+ uses : actions/cache@v4
16
+ with :
17
+ path : |
18
+ node_modules
19
+ */*/node_modules
20
+ key : yarn-deps-${{ hashFiles('**/yarn.lock') }}
21
+
22
+ - name : Install dependencies
23
+ shell : bash
24
+ run : yarn
25
+
26
+ - name : Transpile to JavaScript
27
+ shell : bash
28
+ run : yarn transpile
29
+
30
+ - run : npm publish --access=public
31
+ shell : bash
32
+ env :
33
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : publish npm
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ publish :
8
+ runs-on : ubuntu-latest
9
+ uses : ./.github/workflows/actions/npm-publish@main
10
+ secrets : inherit
Original file line number Diff line number Diff line change
1
+ name : release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ version :
7
+ description : ' SemVer that will be used for publishing (e.g. "0.0.1")'
8
+ required : true
9
+ type : string
10
+
11
+ jobs :
12
+ prepare-release :
13
+ runs-on : ubuntu-latest
14
+ permissions :
15
+ contents : write
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ - name : Prepare ${{ inputs.version }} release
19
+ run : |
20
+ git config user.name "think-it-account"
21
+ git config user.email "[email protected] "
22
+
23
+ sed -i 's/"version":.*/"version": "${{ inputs.version }}",/g' package.json
24
+ git add .
25
+ git commit -m "Prepare release ${{ inputs.version }}"
26
+ git push origin main
27
+
28
+ git tag --force v${{ inputs.version }}
29
+ git push --force origin v${{ inputs.version }}
30
+
31
+ - name : Create GitHub Release
32
+ uses : ncipollo/release-action@v1
33
+ with :
34
+ generateReleaseNotes : true
35
+ tag : ${{ inputs.version }}
36
+ token : ${{ secrets.GITHUB_TOKEN }}
37
+ makeLatest : true
38
+ removeArtifacts : true
39
+
40
+ publish :
41
+ needs : prepare-release
42
+ runs-on : ubuntu-latest
43
+ uses : ./.github/workflows/actions/npm-publish@main
44
+ secrets : inherit
Original file line number Diff line number Diff line change 1
- name : Pull request testing
1
+ name : test
2
2
3
3
on :
4
4
push :
Original file line number Diff line number Diff line change @@ -168,6 +168,9 @@ connectors with capabilities described in the
168
168
Please, adhere to the [ CONTRIBUTING] ( CONTRIBUTING.md ) guidelines when suggesting
169
169
changes in this repository.
170
170
171
+ ### Release
172
+ The ` release ` github action workflow takes care of release.
173
+
171
174
## License
172
175
173
176
Copyright 2022-2023 Think.iT GmbH.
You can’t perform that action at this time.
0 commit comments