From f15869f98486c3e9ac2c4e02a1430c4c0e803fed Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 19 Mar 2021 16:03:18 +1000 Subject: [PATCH] Fix issue with deploy script --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8d04f70..ac8b1da 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,7 +15,7 @@ jobs: - name: Install Required NPM packages run: | - npm install -g jwtgen + npm install jwtgen - name: Create release uses: actions/create-release@v1 @@ -36,7 +36,7 @@ jobs: run: | git archive -o package.zip HEAD VERSION_NUMBER=$(jq -r .version manifest.json) - ACCESS_TOKEN=$(jwtgen -a HS256 -s ${CLIENT_SECRET} -c "iss=${CLIENT_ID}" -e 300) + ACCESS_TOKEN=$($(npm bin)/jwtgen -a HS256 -s ${CLIENT_SECRET} -c "iss=${CLIENT_ID}" -e 300) curl -H "Authorization: JWT ${ACCESS_TOKEN}" -g -XPUT --form "upload=@package.zip" "https://addons.mozilla.org/api/v4/addons/${APP_ID}/versions/${VERSION_NUMBER}/" - name: Deploy to Chrome