-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AXON-29] chore: implement Github CI
- Loading branch information
1 parent
23d3e04
commit e9f947b
Showing
2 changed files
with
51 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: | ||
- '*' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run linter | ||
run: npm run lint | ||
- name: Run unit tests | ||
run: npm run test | ||
- name: Build the extension | ||
run: npx vsce package --baseContentUrl https://bitbucket.org/atlassianlabs/atlascode/src/main/ |
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,29 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run linter | ||
run: npm run lint | ||
- name: Run unit tests | ||
run: npm run test | ||
- name: Build the extension | ||
run: echo vsce package --baseContentUrl https://bitbucket.org/atlassianlabs/atlascode/src/main/ | ||
- name: Publish the extension | ||
# let's see if this gets masked on the build | ||
run: echo vsce publish -p ${{ secrets.VSCE_MARKETPLACE_TOKEN }} --baseContentUrl https://bitbucket.org/atlassianlabs/atlascode/src/main/ --packagePath atlascode-${GITHUB_REF##*/}.vsix | ||
- name: Publish to OpenVSX | ||
# let's see if this gets masked on the build | ||
run: echo npx ovsx publish "atlascode-${GITHUB_REF##*/}.vsix" -p ${{ secrets.OPENVSX_KEY }} | ||
|