Skip to content

Conversation

@Adsgw
Copy link

@Adsgw Adsgw commented Jan 24, 2022

steps:

Description:
Describe your changes.

Related issue:
Add link to the related issue.

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
  with:
    node-version: '14.x'
    registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm publish
  env:
    NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: actions/setup-node@v2
  with:
    registry-url: 'https://npm.pkg.github.com'
- run: npm publish
  env:
    NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
https://npm.pkg.github.com
https://registry.npmjs.org
JJ:patch-1
  .gitattributes
@Adsgw
Copy link
Author

Adsgw commented Jan 24, 2022

steps:

Skip post-install scripts here, as a malicious

script could steal NODE_AUTH_TOKEN.

  • run: npm install --ignore-scripts
    env:
    NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

npm rebuild will run all those post-install scripts for us.

  • run: npm rebuild && npm run prepare --if-present

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant