Skip to content

Commit

Permalink
ci: update publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joaotonaco committed Jul 26, 2024
1 parent 9725543 commit 59e1fa0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/package.yml → .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Package
name: Publish

on:
push:
Expand All @@ -8,8 +8,8 @@ on:
concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
package:
name: Package
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
Expand All @@ -24,13 +24,7 @@ jobs:
- name: Install Dependencies
run: npm ci

- name: Package
run: npm run package

- name: Archive extension package
uses: actions/upload-artifact@v4
with:
name: package
path: squarecloud-*.vsix
retention-days: 7
if-no-files-found: warn
- name: Publish
env:
VSCE_PAT: ${{ secrets.VSCODE_PERSONAL_TOKEN }}
run: npm run publish
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"main": "./dist/extension.js",
"scripts": {
"vscode:prepublish": "npm run build",
"package": "vsce package --allow-star-activation",
"publish": "vsce publish --allow-star-activation",
"build": "tsc && tsc-alias",
"check-types": "tsc --noEmit",
"watch": "concurrently --raw \"tsc -w\" \"tsc-alias -w\"",
Expand Down

0 comments on commit 59e1fa0

Please sign in to comment.