Merge pull request #55 from devgateway/fix/add-missing-menu-search-co… #30
This file contains hidden or 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 WP-React-Lib to NPM | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
packages: write | |
id-token: write | |
pull-requests: write | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: wp-react-lib | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '22.x' | |
- name: Install dependencies | |
run: npm install | |
- name: Run TypeScript Check | |
run: npm run typecheck | |
- name: Build | |
run: npm run build | |
- name: Create Release | |
uses: changesets/action@001cd79f0a536e733315164543a727bdf2d70aff | |
id: release | |
with: | |
version: npm run version | |
publish: npm exec changeset publish --git-tag | |
commit: "chore(release): update version" | |
title: "chore(release): update version" | |
cwd: "./wp-react-lib" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |