chore(deps): bump word-wrap from 1.2.3 to 1.2.5 (#4) #18
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: Build | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: "contains(github.event.head_commit.message, '[release]')" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: yarn | |
- run: yarn install --frozen-lockfile | |
- run: RELEASE=1 yarn build | |
- run: | | |
VERSION=`jq .version src/metadata.json` | |
gh release create ${VERSION} -t "Version ${VERSION}" -n "Automatically built by CI based on commit ${{ github.sha }}" | |
gh release upload ${VERSION} [email protected] --clobber | |
env: | |
GH_TOKEN: ${{ github.token }} |