Skip to content

Commit e9e5cd9

Browse files
committed
fix: should fix autorelease in workflows
1 parent 4878033 commit e9e5cd9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
VERSION: ${{ github.event.deployment.payload.version }}
1717
DEPLOYMENT_ID: ${{ github.event.deployment.id }}
1818
with:
19-
github-token: ${{ secrets.GITHUB_TOKEN }}
19+
github-token: ${{ secrets.DEPLOY_TOKEN }}
2020
previews: 'ant-man,flash'
2121
script: |
2222
const name = process.env.NAME;

.github/workflows/on-merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
const ref = process.env.REF;
9898
const name = process.env.NAME;
9999
const version = process.env.VERSION;
100-
const npmTag = process.env.VERSION_BUMP === 'beta' ? 'beta' : 'latest';
100+
const tag = process.env.VERSION_BUMP === 'beta' ? 'beta' : 'latest';
101101
const { data: deployment } = await github.repos.createDeployment({
102102
owner: context.repo.owner,
103103
repo: context.repo.repo,
@@ -109,7 +109,7 @@ jobs:
109109
version,
110110
name,
111111
ref,
112-
npmTag,
112+
tag,
113113
},
114114
description: `Deploy ${name}@${version} on crates.io`,
115115
production_environment: true,

0 commit comments

Comments
 (0)