Bump @babel/preset-react from 7.24.7 to 7.25.7 (#202) #217
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: Release and Publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
create-release: | |
name: Create Release | |
runs-on: ubuntu-latest | |
outputs: | |
released: ${{ steps.release.outputs.released }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Automatic GitHub Release | |
uses: justincy/github-action-npm-release@2.0.2 | |
id: release | |
- name: Print release output | |
if: ${{ steps.release.outputs.released == 'true' }} | |
run: echo Release ID ${{ steps.release.outputs.release_id }} | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
needs: [ create-release ] | |
if: needs.create-release.outputs.released == 'true' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: https://registry.npmjs.org | |
- name: Install dependencies | |
run: yarn | |
- name: Build project | |
run: yarn build | |
- name: Run tests | |
run: yarn test | |
- name: Publish to npm | |
run: cd dist && npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |