ci(INFRAPRJ-6604): push to npm registry #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release crypto-icons package | |
on: | |
pull_request: | |
# push: | |
# branches: | |
# - main | |
# paths: | |
# - "lib/**" | |
jobs: | |
publish-gpr: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./lib/ | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org | |
- name: Install dependencies | |
run: npm install --frozen-lockfile | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://npm.pkg.github.com/ | |
- run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.CI_BOT_TOKEN }} |