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