Skip to content

chore(deps): update dependency fastify to v4.21.0 (#1084) #701

chore(deps): update dependency fastify to v4.21.0 (#1084)

chore(deps): update dependency fastify to v4.21.0 (#1084) #701

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: GitHub context
run: echo "$GITHUB_CONTEXT"
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
- name: Checkout
if: github.ref == 'refs/heads/main'
uses: actions/checkout@v3
with:
ref: main
fetch-depth: 50
- name: Fetch all tags (for releases)
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Setup Node (uses version in .nvmrc)
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --immutable
- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
[email protected]
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Verify NPM user
run: yarn auth
- name: Building packages
run: yarn build
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
title: 'ci(changesets): version packages'
commit: 'ci(changesets): version packages'
publish: yarn changeset publish
version: yarn changeset:version-and-format
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}