mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-26 12:38:04 +03:00
ci: migrate to the org-level token
This commit is contained in:
parent
1d7171a1ec
commit
adba73a9ff
@ -126,7 +126,7 @@ jobs:
|
|||||||
cache-dependency-path: tooling/*/yarn.lock
|
cache-dependency-path: tooling/*/yarn.lock
|
||||||
|
|
||||||
- name: cargo login
|
- name: cargo login
|
||||||
run: cargo login ${{ secrets.crate_token }}
|
run: cargo login ${{ secrets.ORG_CRATES_IO_TOKEN }}
|
||||||
- name: git config
|
- name: git config
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "${{ github.event.pusher.name }}"
|
git config --global user.name "${{ github.event.pusher.name }}"
|
||||||
@ -136,7 +136,7 @@ jobs:
|
|||||||
uses: jbolda/covector/packages/action@covector-v0
|
uses: jbolda/covector/packages/action@covector-v0
|
||||||
id: covector
|
id: covector
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
|
||||||
CARGO_AUDIT_OPTIONS: ${{ secrets.CARGO_AUDIT_OPTIONS }}
|
CARGO_AUDIT_OPTIONS: ${{ secrets.CARGO_AUDIT_OPTIONS }}
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@ -145,7 +145,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Create Pull Request With Versions Bumped
|
- name: Create Pull Request With Versions Bumped
|
||||||
if: steps.covector.outputs.commandRan == 'version'
|
if: steps.covector.outputs.commandRan == 'version'
|
||||||
uses: tauri-apps/create-pull-request@v3.4.1
|
uses: tauri-apps/create-pull-request@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch: release/version-updates
|
branch: release/version-updates
|
||||||
@ -160,7 +160,7 @@ jobs:
|
|||||||
steps.covector.outputs.packagesPublished != ''
|
steps.covector.outputs.packagesPublished != ''
|
||||||
uses: peter-evans/repository-dispatch@v1
|
uses: peter-evans/repository-dispatch@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.TAURI_BOT_PAT }}
|
token: ${{ secrets.ORG_TAURI_BOT_PAT }}
|
||||||
repository: tauri-apps/tauri-docs
|
repository: tauri-apps/tauri-docs
|
||||||
event-type: update-docs
|
event-type: update-docs
|
||||||
|
|
||||||
@ -170,7 +170,7 @@ jobs:
|
|||||||
contains(steps.covector.outputs.packagesPublished, 'cli.rs')
|
contains(steps.covector.outputs.packagesPublished, 'cli.rs')
|
||||||
uses: peter-evans/repository-dispatch@v1
|
uses: peter-evans/repository-dispatch@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.TAURI_BOT_PAT }}
|
token: ${{ secrets.ORG_TAURI_BOT_PAT }}
|
||||||
repository: tauri-apps/tauri
|
repository: tauri-apps/tauri
|
||||||
event-type: publish-clijs
|
event-type: publish-clijs
|
||||||
inputs: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}" }'
|
inputs: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}" }'
|
||||||
@ -181,6 +181,6 @@ jobs:
|
|||||||
contains(steps.covector.outputs.packagesPublished, 'cli.rs')
|
contains(steps.covector.outputs.packagesPublished, 'cli.rs')
|
||||||
uses: peter-evans/repository-dispatch@v1
|
uses: peter-evans/repository-dispatch@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.TAURI_BOT_PAT }}
|
token: ${{ secrets.ORG_TAURI_BOT_PAT }}
|
||||||
repository: tauri-apps/tauri
|
repository: tauri-apps/tauri
|
||||||
event-type: publish-clirs
|
event-type: publish-clirs
|
||||||
|
2
.github/workflows/publish-cli-js.yml
vendored
2
.github/workflows/publish-cli-js.yml
vendored
@ -400,5 +400,5 @@ jobs:
|
|||||||
npm publish
|
npm publish
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
|
||||||
RELEASE_ID: ${{ github.event.inputs.releaseId }}
|
RELEASE_ID: ${{ github.event.inputs.releaseId }}
|
||||||
|
@ -15,7 +15,7 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: cargo login
|
- name: cargo login
|
||||||
run: cargo login ${{ secrets.CRATE_TOKEN }}
|
run: cargo login ${{ secrets.ORG_CRATES_IO_TOKEN }}
|
||||||
|
|
||||||
- name: git config
|
- name: git config
|
||||||
run: |
|
run: |
|
||||||
@ -32,7 +32,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Create Pull Request With Versions Bumped
|
- name: Create Pull Request With Versions Bumped
|
||||||
if: steps.covector.outputs.commandRan == 'version'
|
if: steps.covector.outputs.commandRan == 'version'
|
||||||
uses: tauri-apps/create-pull-request@v3.4.1
|
uses: tauri-apps/create-pull-request@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch: release/version-updates
|
branch: release/version-updates
|
||||||
|
@ -19,7 +19,7 @@ jobs:
|
|||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
- name: cargo login
|
- name: cargo login
|
||||||
run: cargo login ${{ secrets.CRATE_TOKEN }}
|
run: cargo login ${{ secrets.ORG_CRATES_IO_TOKEN }}
|
||||||
|
|
||||||
- name: git config
|
- name: git config
|
||||||
run: |
|
run: |
|
||||||
@ -36,7 +36,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Create Pull Request With Versions Bumped
|
- name: Create Pull Request With Versions Bumped
|
||||||
if: steps.covector.outputs.commandRan == 'version'
|
if: steps.covector.outputs.commandRan == 'version'
|
||||||
uses: tauri-apps/create-pull-request@v3.4.1
|
uses: tauri-apps/create-pull-request@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
branch: release/version-updates
|
branch: release/version-updates
|
||||||
|
Loading…
Reference in New Issue
Block a user