Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
laimermic committed Nov 29, 2023
2 parents dcebdbc + 7879223 commit 7bb1364
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package
name: Publish Node.js Package

on:
release:
Expand All @@ -17,7 +17,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: |
npm ci
npm run build
publish-npm:
needs: build
Expand All @@ -33,3 +35,18 @@ jobs:
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
publish-github:
needs: build
runs-on: ubuntu-latest
environment: GitHub
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com
- run: npm ci
- name: Publish to GitHub Packages
run: npm publish --registry=https://npm.pkg.github.com/
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 1 addition & 7 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: NodeJS with Webpack
name: Build

on:
push:
Expand Down Expand Up @@ -26,9 +26,3 @@ jobs:
run: |
npm ci
npm run build
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.2
with:
# Artifact name
name: Node ${{ matrix.node-version }}
path: ./dist

0 comments on commit 7bb1364

Please sign in to comment.