Skip to content

Commit

Permalink
Update webpack.yml (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
opensrc0 committed Dec 11, 2023
1 parent c23d8f1 commit 40891ad
Showing 1 changed file with 20 additions and 25 deletions.
45 changes: 20 additions & 25 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,28 @@
name: Node.js Package
name: NodeJS with Webpack

on:
release:
types: [created]
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm test

publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
strategy:
matrix:
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
npm install
npm run build

0 comments on commit 40891ad

Please sign in to comment.