Skip to content

Commit

Permalink
Merge pull request #2 from tony21921/new-branch
Browse files Browse the repository at this point in the history
update for npmjs publish
  • Loading branch information
tony21921 authored Nov 29, 2024
2 parents 362f218 + 2ad8ab7 commit 825ce6d
Show file tree
Hide file tree
Showing 10 changed files with 9,192 additions and 5,261 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: NodeJS with Webpack

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

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [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: Authenticate to npm
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- name: Publish to npmjs
run: npm run publish:lib
Loading

0 comments on commit 825ce6d

Please sign in to comment.