Skip to content

Commit

Permalink
chore(ci): rotate and update repository secrets (#236)
Browse files Browse the repository at this point in the history
* chore(ci): update secrets for `release.yml`

* chore(ci): update secrets for `publish.yml`
  • Loading branch information
byCedric authored Nov 17, 2023
1 parent 747d308 commit 3fba51a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: 🎁 Package extension
run: npx vsce package --no-dependencies
env:
VSCODE_EXPO_TELEMETRY_KEY: ${{ secrets.TELEMETRY_KEY }}
VSCODE_EXPO_TELEMETRY_KEY: ${{ secrets.VSCODE_TELEMETRY_KEY }}

- name: 📋 Add package to release
uses: softprops/action-gh-release@v1
Expand All @@ -40,15 +40,15 @@ jobs:
if: ${{ !github.event.release.prerelease }}
run: npx vsce publish --no-dependencies
env:
VSCODE_EXPO_TELEMETRY_KEY: ${{ secrets.TELEMETRY_KEY }}
VSCE_PAT: ${{ secrets.VSCE_TOKEN }}
VSCODE_EXPO_TELEMETRY_KEY: ${{ secrets.VSCODE_TELEMETRY_KEY }}
VSCE_PAT: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}

- name: 🚀 Publish pre-release to marketplace
if: ${{ github.event.release.prerelease }}
run: npx vsce publish --no-dependencies --pre-release
env:
VSCODE_EXPO_TELEMETRY_KEY: ${{ secrets.TELEMETRY_KEY }}
VSCE_PAT: ${{ secrets.VSCE_TOKEN }}
VSCODE_EXPO_TELEMETRY_KEY: ${{ secrets.VSCODE_TELEMETRY_KEY }}
VSCE_PAT: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}

open-vsx:
runs-on: ubuntu-latest
Expand All @@ -62,16 +62,16 @@ jobs:
- name: 🎁 Package extension
run: npx vsce package --no-dependencies --out ./vscode-expo.vsix
env:
VSCODE_EXPO_TELEMETRY_KEY: ${{ secrets.TELEMETRY_KEY }}
VSCODE_EXPO_TELEMETRY_KEY: ${{ secrets.VSCODE_TELEMETRY_KEY }}

- name: 🚀 Publish release to open-vsx
if: ${{ !github.event.release.prerelease }}
run: npx ovsx publish --no-dependencies ./vscode-expo.vsix
env:
OVSX_PAT: ${{ secrets.OPENVSX_TOKEN }}
OVSX_PAT: ${{ secrets.VSCODE_OPENVSX_TOKEN }}

- name: 🚀 Publish pre-release to open-vsx
if: ${{ github.event.release.prerelease }}
run: npx ovsx publish --no-dependencies --pre-release ./vscode-expo.vsix
env:
OVSX_PAT: ${{ secrets.OPENVSX_TOKEN }}
OVSX_PAT: ${{ secrets.VSCODE_OPENVSX_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.EXPOBOT_GITHUB_TOKEN }}
GIT_AUTHOR_NAME: Expo CI
GIT_AUTHOR_EMAIL: support+ci@expo.io
GIT_AUTHOR_EMAIL: support+ci@expo.dev
GIT_COMMITTER_NAME: Expo CI
GIT_COMMITTER_EMAIL: support+ci@expo.io
GIT_COMMITTER_EMAIL: support+ci@expo.dev

0 comments on commit 3fba51a

Please sign in to comment.