Skip to content

Commit

Permalink
Merge pull request #7 from mmorlack/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
matteomorlack authored Aug 4, 2024
2 parents 80835bc + 8476c93 commit 0b25d89
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,28 @@ jobs:
- name: Package
if: success() && matrix.os == 'ubuntu-latest'
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
npm run package ${RELEASE_TYPE}
echo "packageFile=$(ls *.vsix)" >> $GITHUB_ENV
echo "version=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_ENV
env:
RELEASE_TYPE: ${{ inputs.releaseType }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
if: success() && matrix.os == 'ubuntu-latest'
run: |
npm run publish -i ${VSIX_PATH}
npm run publish -- -i ${VSIX_PATH}
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
VSIX_PATH: ${{ env.packageFile }}
- name: Push tag
if: success() && matrix.os == 'ubuntu-latest'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_VERSION: ${{ env.version }}
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git push
git push --tags
- name: Release
env:
Expand All @@ -61,4 +65,5 @@ jobs:
if: success() && matrix.os == 'ubuntu-latest'
with:
files: |
${{ env.packageFile }}
${{ env.packageFile }}
tag_name: ${{ env.version }}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "projects-browser",
"displayName": "Projects Browser",
"description": "",
"version": "0.2.0",
"version": "0.1.0",
"license": "MIT",
"repository": {
"type": "git",
Expand Down

0 comments on commit 0b25d89

Please sign in to comment.