Skip to content

Commit

Permalink
--provenance --access public
Browse files Browse the repository at this point in the history
Signed-off-by: RedGuy12 <[email protected]>
  • Loading branch information
cobaltt7 committed Oct 1, 2023
1 parent 46648a3 commit 648f22a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ jobs:
- run: cp LICENSE dist/LICENSE
- run: cp manifest.json dist/manifest.json
# Get package
- run: echo '{"name":"@sa-community/addons-data","version":"'$(echo $VERSION | sed "s/v//")'-test.0","description":"Scratch Addons’ addons data","homepage":"https://github.com/scratchaddons-community","repository":{"type":"git","url":"https://github.com/scratchaddons-community/addons-data-script"},"license":"GPLv3","maintainers":["RedGuy12"],"main":"addons.json"}' > dist/package.json
- run: echo '{"name":"@sa-community/addons-data","version":"'$(echo $VERSION | sed "s/v//")'-test.0","description":"Scratch Addons’ addons data","homepage":"https://github.com/scratchaddons-community","repository":"https://github.com/scratchaddons-community/addons-data-script","license":"GPLv3","maintainers":["RedGuy12"],"main":"addons.json"}' > dist/package.json
# Get addons
- run: |
jq -c 'map(select(startswith("//") | not) | {addon: ., content: (try input catch null)})' addons/addons.json $(jq -r 'map(select(startswith("//") | not) | "addons/" + . + "/addon.json") | join(" ")' addons/addons.json) >> dist/addons.json
# Publish
- uses: actions/setup-node@v3
with:
registry-url: "https://registry.npmjs.org"
- run: npm publish
- run: npm publish --provenance --access public
working-directory: dist
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 648f22a

Please sign in to comment.