-
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: initial setup of Github CI
- Loading branch information
1 parent
23d3e04
commit d93c9b9
Showing
5 changed files
with
501 additions
and
54 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,38 @@ | ||
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: npm run extension:package | ||
|
||
- name: Verify VSCE token | ||
run: | | ||
npx vsce verify-pat -p ${{ secrets.VSCE_MARKETPLACE_TOKEN }} | ||
- name: Verify OpenVSX token | ||
run: | | ||
npx ovsx verify-pat -p ${{ secrets.OPENVSX_KEY }} |
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,62 @@ | ||
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: Evaluate version | ||
run: | | ||
RELEASE_VERSION=${GITHUB_REF##*/v} && \ | ||
echo "RELEASE_VERSION=${RELEASE_VERSION}" >> $GITHUB_ENV && \ | ||
echo "Using version '${RELEASE_VERSION}'" | ||
- name: Set version | ||
run: npm -no-git-tag-version --allow-same-version -f version $RELEASE_VERSION | ||
|
||
- 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: npm run extension:package | ||
|
||
# keeping this two stubbed until we're ready to release | ||
# until then we might want to add tags without actually releasing | ||
# (e.g. to enable rollbacks down the line) | ||
# TODO after repo is public: | ||
# * change baseContentUrl across the repo | ||
# * remove `echo` stubs | ||
|
||
- name: Publish the extension | ||
run: | | ||
npx vsce vefify-pat -p ${{ secrets.VSCE_MARKETPLACE_TOKEN }} | ||
# echo npx vsce publish \ | ||
# -p ${{ secrets.VSCE_MARKETPLACE_TOKEN }} \ | ||
# --baseContentUrl https://bitbucket.org/atlassianlabs/atlascode/src/main/ \ | ||
# --packagePath atlascode-${GITHUB_REF##*/v}.vsix | ||
- name: Publish to OpenVSX | ||
run: | | ||
npx ovsx vefify-pat -p ${{ secrets.OPENVSX_KEY }} | ||
# echo npx ovsx publish \ | ||
# -p ${{ secrets.OPENVSX_KEY }} \ | ||
# "atlascode-${GITHUB_REF##*/v}.vsix" | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.