chore: remove package type from package.json and update npm dependenc… #88
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: CDS Package Publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- uses: actions/cache@v3 | |
id: pnpm-cache | |
with: | |
path: | | |
node_modules | |
styled-system | |
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm- | |
- if: steps.pnpm-cache.outputs.cache-hit != 'true' | |
run: pnpm install --no-frozen-lockfile | |
- run: pnpm run build | |
- run: node ./tools/removePacakgeType.cjs | |
- uses: JS-DevTools/npm-publish@v1 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} |