Skip to content

Commit 3e43007

Browse files
author
Dan Clayton
committed
docs(changeset): fix bin uploads to release
1 parent 1eb8112 commit 3e43007

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.changeset/slimy-coins-knock.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@azwebmaster/dependency-optimizer": patch
3+
---
4+
5+
fix bin uploads to release

.github/workflows/main.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,11 @@ jobs:
7878
if: steps.changesets.outputs.published == 'true'
7979
uses: actions/github-script@v7
8080
env:
81-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8281
VERSION: ${{ env.VERSION }}
8382
with:
83+
github-token: ${{ secrets.GITHUB_TOKEN }}
8484
script: |
8585
const fs = require('fs');
86-
const { Octokit } = require('@octokit/rest');
87-
const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });
8886
const tag = `v${process.env.VERSION}`;
8987
const release = await octokit.repos.getReleaseByTag({
9088
owner: context.repo.owner,

0 commit comments

Comments
 (0)