Merge pull request #12 from DolbyIO/dependabot/npm_and_yarn/webpack-5… #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Package | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
build-package: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Print NPM version 🌎 | |
run: npm --version | |
- name: Install the dependencies 🧱 | |
run: npm ci | |
- name: Test the package 🔧 | |
run: npm run test | |
- name: Build the package 🔨 | |
run: | | |
npm run build | |
npm pack | |
- name: Upload artifact 🗄️ | |
uses: actions/upload-artifact@v4 | |
with: | |
name: npm-package | |
path: ./*.tgz | |
retention-days: 7 |