Skip to content

Commit

Permalink
chore: Seperate dryrun and real publish workflows (#43)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Jeffery <[email protected]>
  • Loading branch information
d-jeffery and d-jeffery authored Aug 2, 2023
1 parent b31ed1e commit d216e09
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/dryrun-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on:
workflow_dispatch:

name: Dryrun Publish Extension
jobs:
dryrun-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # 3.7.0
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
scope: '@openfga'
always-auth: false
cache: 'npm'
cache-dependency-path: ./package-lock.json
- run: npm ci
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@dfe4f6ad46624424fe24cb5bca79839183399045 # 1.4.0
with:
pat: "this_is_a_stub"
registryUrl: https://marketplace.visualstudio.com/
dryRun: true
6 changes: 3 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

name: Publish Extension
jobs:
deploy:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -26,6 +26,6 @@ jobs:
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@dfe4f6ad46624424fe24cb5bca79839183399045 # 1.4.0
with:
pat: "TBD"
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com/
dryRun: true

0 comments on commit d216e09

Please sign in to comment.