Skip to content

fix: add no-git-checks flag to publish command to ignore the overridd… #4

fix: add no-git-checks flag to publish command to ignore the overridd…

fix: add no-git-checks flag to publish command to ignore the overridd… #4

Workflow file for this run

name: Publish to npm
on:
push:
branches:
- publish-to-npm
jobs:
publish:
name: Publish Packages to npm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v4.0.0
with:
version: 6.32.2
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build packages
run: pnpm run build --filter=./packages
# Delete existing .npmrc file if it exists
- name: Delete existing .npmrc
run: |
if [ -f .npmrc ]; then
echo "Deleting existing .npmrc file"
rm .npmrc
fi
- name: Create .npmrc for npm Registry
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
- name: Debug .npmrc
run: cat ~/.npmrc
- name: Allow Publishing from publish-to-npm Branch
run: pnpm config set publish-branch publish-to-npm
- name: Publish to npm Registry
run: |
pnpm publish --filter ./packages/framework --no-git-checks
pnpm publish --filter ./packages/runtime --no-git-checks