Skip to content

Add workflow to publish private package #7

Add workflow to publish private package

Add workflow to publish private package #7

name: broccoli-svg-sprite
on: [push]
env:
NODE_VERSION: 20
jobs:
publish:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: https://npm.pkg.github.com
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}