Skip to content

Commit

Permalink
update for npmjs publish
Browse files Browse the repository at this point in the history
  • Loading branch information
tony21921 committed Nov 29, 2024
1 parent cbd94d5 commit bb53191
Show file tree
Hide file tree
Showing 10 changed files with 9,187 additions and 5,260 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: NodeJS with Webpack

on:
push:
branches: ['main']
pull_request:
branches: ['main']

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v4

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

- name: Install dependencies
run: npm install

- name: Build library
run: npm run build:lib

- name: Publish to npmjs
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit bb53191

Please sign in to comment.