Skip to content

Commit

Permalink
Merge pull request #31 from pj8/publish-test1
Browse files Browse the repository at this point in the history
deploy scriptsにバージョンを渡す
  • Loading branch information
yuki777 authored Sep 26, 2021
2 parents 8868998 + fc782fa commit a824f58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,16 @@ jobs:
- name: Install the dependencies
run: npm i

- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Test
run: |
echo $RELEASE_VERSION
echo ${{ env.RELEASE_VERSION }}
- name: Publish
#if: success() && startsWith( github.ref, 'refs/tags/releases/') && matrix.os == 'ubuntu-latest'
run: npm run deploy
run: npm run deploy -version=${{ env.RELEASE_VERSION }}
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"lint": "eslint src --ext ts",
"lint:fix": "eslint --fix src --ext ts",
"test": "node ./out/test/runTest.js",
"deploy": "vsce publish --no-yarn"
"deploy": "vsce publish --no-yarn ${npm_config_version}"
},
"devDependencies": {
"@types/glob": "^7.1.3",
Expand Down

0 comments on commit a824f58

Please sign in to comment.