rev core #41
This file contains hidden or 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 - Dream.mf Core | |
on: | |
push: | |
paths: | |
- "packages/dmf-core/**" | |
- ".github/workflows/npm-publish-core.yml" | |
release: | |
types: [created] | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
env: | |
PACKAGE_DIR: packages/dmf-core | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 21 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: Install NX CLI | |
run: pnpm add -g nx | |
- name: Install dependencies | |
run: pnpm install | |
- name: Build | |
run: pnpm nx build dmf-core | |
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NODE_AUTH_TOKEN }}" > .npmrc | |
working-directory: ${{ env.PACKAGE_DIR }} | |
shell: bash | |
- run: ls -alh ${{ env.PACKAGE_DIR }} | |
- run: npm publish --access public | |
working-directory: ${{ env.PACKAGE_DIR }} |