diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1aa2f39..55aba5f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,8 +83,9 @@ jobs: - name: Install binaryen if: github.repository == 'LiveSplit/LiveSplitOne' && github.ref == 'refs/heads/master' + shell: bash run: | - cd ~/.cargo/bin + cd ${{ matrix.cargo_bin }} tar -xzf binaryen-*-${{ matrix.binaryen }}.tar.gz mv binaryen*/bin/wasm* . @@ -128,6 +129,8 @@ jobs: librsvg2-dev - name: Build Core + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: npm run build:core:deploy - name: Run eslint (Web) diff --git a/webpack.config.js b/webpack.config.js index 8d1fdc9..7af0e87 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -44,7 +44,11 @@ function parseChangelog() { export default async (env, argv) => { const getContributorsForRepo = async (repoName) => { - const contributorsData = await fetch(`https://api.github.com/repos/LiveSplit/${repoName}/contributors`); + const contributorsData = await fetch(`https://api.github.com/repos/LiveSplit/${repoName}/contributors`, { + headers: { + "Authorization": env.GITHUB_TOKEN ? `Bearer ${env.GITHUB_TOKEN}` : undefined, + }, + }); return contributorsData.json(); }