fix: action number field cast to number (#82) #177
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: Lint, Build, Test and Publish | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
name: Installing & Building | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.14.0 | |
- name: Install | |
run: yarn | |
- name: Lint, Test & Build on branch | |
if: github.ref != 'refs/heads/main' | |
run: npx nx affected --base=origin/main -t lint test build | |
- name: Lint, Test & Build on main | |
if: | | |
github.event_name == 'push' | |
&& ( | |
github.ref == 'refs/heads/main' | |
) | |
run: npx nx affected --base=HEAD~1 -t lint test build | |
- name: Publish from main | |
if: | | |
github.event_name == 'push' | |
&& ( | |
github.ref == 'refs/heads/main' | |
) | |
run: npx nx affected --base=HEAD~1 -t publish:package | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }} | |
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }} | |
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }} | |
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |