Skip to content

fix(ci): prevent false-success publish + force sync to origin/master #93

fix(ci): prevent false-success publish + force sync to origin/master

fix(ci): prevent false-success publish + force sync to origin/master #93

Workflow file for this run

name: Publish
on:
push:
branches:
- master
jobs:
publish:
concurrency:
group: publish
cancel-in-progress: false
runs-on: ubuntu-latest
env:
PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18.x'
scope: '@foo-software'
- name: Full Clean (no npm cache)
run: |
rm -rf node_modules
rm -rf packages/*/node_modules
- name: Use stable npm version
run: npm install -g npm@9.9.0
- name: Install
run: |
npm ci
npm run lerna -- bootstrap --hoist
- name: Show installed type versions
run: |
npm ls @types/node || true
npm ls @jest/types || true
- name: Publish Packages
run: |
echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}' > ${{ github.workspace }}/.npmrc
node packages/foo-api-ci-tools/dist/bin/config-git.js
node packages/foo-api-ci-tools/dist/bin/publish-packages.js