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 cabc9db
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/broccoli-svg-sprite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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 }}
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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "broccoli-svg-sprite",
"name": "@feedbackfruits/broccoli-svg-sprite",
"version": "1.1.0",
"description": "A broccoli.js plugin for generating svg sprites using node.js svg-sprite module by Joschi Kuphal (https://github.com/jkphl/svg-sprite)",
"main": "index.js",
Expand All @@ -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 cabc9db

Please sign in to comment.