Merge pull request #412 from dcmjs-org/fix/process-and-log #82
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: Publish package to NPM | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
publish-package: | |
runs-on: ubuntu-20.04 | |
environment: publish | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install packages | |
uses: bahmutov/npm-install@v1 | |
- name: Run tests | |
run: npm run test | |
- name: Run build | |
run: npm run build | |
- name: Semantic release | |
uses: cycjimmy/semantic-release-action@v3 | |
with: | |
semantic_version: 19.0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |