Skip to content

Commit

Permalink
Add workflow to publish private package
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoBas committed May 2, 2024
1 parent 640169d commit ec7ebd4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/broccoli-svg-sprite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: broccoli-svg-sprite

on: [push]

env:
NODE_VERSION: 20

jobs:
publish:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
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 }}
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.
.*
# except
!.gitignore
!.gitkeep
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"repository": {
"type": "git",
"url": "[email protected]:feedbackfruits/broccoli-svg-sprite.git"
"url": "git+ssh://git@github.com/feedbackfruits/broccoli-svg-sprite.git"
},
"keywords": [
"broccoli-plugin",
Expand Down

0 comments on commit ec7ebd4

Please sign in to comment.