Skip to content

Fix: only spread rest props to child components #167

Fix: only spread rest props to child components

Fix: only spread rest props to child components #167

name: Publish @next version to NPM
on:
pull_request:
branches:
- 'develop'
types: [closed]
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- name: Install all npm packages
run: npm ci
- name: Build package
run: npm run build
- name: Configure git user name and email
run: |
git config user.name "10up Bot"
git config user.email "[email protected]"
- name: npm update version and release
run: |
npm version prerelease --preid=next
npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: push release commit to repo
run: git push