Release: v1.0.2 #181
Workflow file for this run
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: NPM Publish | ||
on: [push, pull_request] | ||
jobs: | ||
automated_tests: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci') && github.ref !== main" | ||
Check failure on line 8 in .github/workflows/main.yml GitHub Actions / NPM PublishInvalid workflow file
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js 20.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 20.x | ||
- name: Cache node modules | ||
uses: actions/cache@v1 | ||
with: | ||
path: node_modules | ||
key: yarn-deps-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
yarn-deps-${{ hashFiles('yarn.lock') }} | ||
- name: Run tests | ||
run: | | ||
yarn install --frozen-lockfile | ||
yarn test | ||
release: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')" | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js 20.x | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 20.x | ||
- name: Prepare repository | ||
run: | | ||
git fetch --unshallow --tags | ||
- name: Cache node modules | ||
uses: actions/cache@v1 | ||
with: | ||
path: node_modules | ||
key: yarn-deps-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
yarn-deps-${{ hashFiles('yarn.lock') }} | ||
- name: Create Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: | | ||
git config user.name 'Tonic Labs' | ||
git config user.email '<>' | ||
yarn install --frozen-lockfile | ||
yarn build | ||
npx auto shipit |