-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to publish private package
- Loading branch information
Showing
3 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
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
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 }} |
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
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 | ||
|
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
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", | ||
|
@@ -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", | ||
|