Skip to content

update @samual/rollup-config and babel-plugin-here #14

update @samual/rollup-config and babel-plugin-here

update @samual/rollup-config and babel-plugin-here #14

Workflow file for this run

name: Publish
on: { push: { branches: [ main ] }, release: { types: [ created ] } }
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- { name: Checkout, uses: actions/checkout@v4 }
- { name: Setup Node.js environment, uses: actions/setup-node@v4, with: { node-version: "^18 || >=20" } }
- { name: Setup pnpm, uses: pnpm/action-setup@v3, with: { version: "^8.15.2", run_install: true } }
- run: git config --global user.email github-action@users.noreply.github.com
- run: git config --global user.name "Github Action"
- run: pnpm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
- name: Publish dev
if: github.event_name == 'push'
run: scripts/version-dev.js && scripts/package.sh && cd dist && pnpm publish --tag dev
- name: Publish release
if: github.event_name == 'release'
run: scripts/package.sh && cd dist && pnpm publish --no-git-checks