Skip to content

Refactor Example Blocks Setup to improve E2E tests #98

Refactor Example Blocks Setup to improve E2E tests

Refactor Example Blocks Setup to improve E2E tests #98

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@v2
- uses: actions/setup-node@v2
with:
node-version: '16.x'
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