From ad500a8da80587320777a6fc33cbef1621f98a05 Mon Sep 17 00:00:00 2001 From: Bas Hintemann Date: Thu, 2 May 2024 15:10:39 +0200 Subject: [PATCH] Add workflow to publish private package --- .github/workflows/broccoli-svg-sprite.yml | 21 +++++++++++++++++++++ .gitignore | 2 -- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/broccoli-svg-sprite.yml diff --git a/.github/workflows/broccoli-svg-sprite.yml b/.github/workflows/broccoli-svg-sprite.yml new file mode 100644 index 0000000..006ccd8 --- /dev/null +++ b/.github/workflows/broccoli-svg-sprite.yml @@ -0,0 +1,21 @@ +name: broccoli-svg-sprite + +on: [push] + +env: + NODE_VERSION: 20 + +jobs: + publish: + if: startsWith(github.ref, 'refs/tags/') + needs: test + 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 }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 26ae520..711e616 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ -# See http://help.github.com/ignore-files/ for more about ignoring files. -.* # except !.gitignore !.gitkeep