File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+ on :
3
+ push :
4
+ branches :
5
+ - ' *'
6
+ jobs :
7
+ build :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@v4
11
+ - name : Set up Node.js
12
+ uses : actions/setup-node@v4
13
+ with :
14
+ node-version : ' 20.x'
15
+ - name : Install dependencies
16
+ run : npm install
17
+ - name : Run linter
18
+ run : npm run lint
19
+ - name : Run unit tests
20
+ run : npm run test
21
+ - name : Build the extension
22
+ run : npx vsce package --baseContentUrl https://bitbucket.org/atlassianlabs/atlascode/src/main/
Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ push :
4
+ tags :
5
+ - ' *'
6
+ jobs :
7
+ release :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@v4
11
+ - name : Set up Node.js
12
+ uses : actions/setup-node@v4
13
+ with :
14
+ node-version : ' 20.x'
15
+ - name : Install dependencies
16
+ run : npm install
17
+ - name : Run linter
18
+ run : npm run lint
19
+ - name : Run unit tests
20
+ run : npm run test
21
+ - name : Build the extension
22
+ run : echo vsce package --baseContentUrl https://bitbucket.org/atlassianlabs/atlascode/src/main/
23
+ - name : Publish the extension
24
+ # let's see if this gets masked on the build
25
+ run : echo vsce publish -p ${{ secrets.VSCE_MARKETPLACE_TOKEN }} --baseContentUrl https://bitbucket.org/atlassianlabs/atlascode/src/main/ --packagePath atlascode-${GITHUB_REF##*/}.vsix
26
+ - name : Publish to OpenVSX
27
+ # let's see if this gets masked on the build
28
+ run : echo npx ovsx publish "atlascode-${GITHUB_REF##*/}.vsix" -p ${{ secrets.OPENVSX_KEY }}
29
+
You can’t perform that action at this time.
0 commit comments