Bump fast-loops from 1.1.3 to 1.1.4 (#65) #51
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 of our action | |
name: Release | |
# The event that will trigger the action | |
on: | |
push: | |
branches: [main] | |
# what the action will do | |
jobs: | |
release: | |
# The operating system it will run on | |
runs-on: ubuntu-latest | |
# This check needs to be in place to prevent a publish loop with auto and github actions | |
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')" | |
# The list of steps that the action will go through | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Prepare repository | |
run: git fetch --unshallow --tags | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- uses: pnpm/action-setup@v2 | |
name: Install pnpm | |
with: | |
version: 8 | |
run_install: false | |
- name: Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- uses: actions/cache@v3 | |
name: Setup pnpm cache | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm install | |
- name: Create Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
pnpm install --frozen-lockfile | |
npx auto shipit |