Skip to content

feat: cache api + req/res/url transforms (#41) #37

feat: cache api + req/res/url transforms (#41)

feat: cache api + req/res/url transforms (#41) #37

Workflow file for this run

name: Release
on:
push:
branches: [main]
jobs:
release:
name: Release
if: ${{ github.repository_owner == 'james-elicx' }}
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: |
npm ci
- name: Build
run: npm run build
- name: Set publishing config
run: npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}