Skip to content

Merge pull request #169 from wethegit/feature/use-in-view-ssr-support #94

Merge pull request #169 from wethegit/feature/use-in-view-ssr-support

Merge pull request #169 from wethegit/feature/use-in-view-ssr-support #94

Workflow file for this run

name: Release
on:
push:
branches:
- main
paths:
- packages/**
concurrency: ${{ github.workflow }}-${{ github.ref }}
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
id-token: write
issues: write
pull-requests: write
jobs:
release:
permissions:
contents: write # to create release (changesets/action)
issues: write # to post issue comments (changesets/action)
pull-requests: write # to create pull request (changesets/action)
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install Dependencies
run: yarn --frozen-lockfile
- name: Lint
run: yarn lint
- name: Build
run: yarn build
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: yarn version
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}