Archived
1
0

Workaround for GH Actions stripping permissions

Closes #1665
This commit is contained in:
Anmol Sethi
2020-05-18 13:48:45 -04:00
parent f5ac262a2f
commit e4ddffd0e2
6 changed files with 14 additions and 9 deletions

View File

@ -9,9 +9,9 @@ main() {
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
fi
download_artifact npm-package ./release
download_artifact npm-package ./release-npm-package
# https://github.com/actions/upload-artifact/issues/38
chmod +x $(grep -rl '^#!/.*' release)
tar -xzf release-npm-package/package.tar.gz
yarn publish --non-interactive release
}