mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-09-03 04:02:33 +02:00
* incremental upgrade to React 18, TS 4.9, etc. * update yarn config * fix build * minor cleanup in type definitions * incremental updates for TS 5.0 * fix build * upgrade to typescript 5.2 * update dependencies * fix lint issues * update to latest Playwright version * update changesets dep * update emotion/css * incremental dependency updates * more small dependency updates * upgrade prettier and eslint * fix lint issues * update dependencies rollup * fix @types/node resolution to restore linting * update tiny-invariant dependency * update dependencies * update dependencies lerna * upgrade react-router-dom * update @types/react and @types/node * update babel dependencies * udpate simple-git-hooks * update @types/node resolution * update lint-staged * remove cypress from dependency list * update @types/node to support Node 20 * update workflows to Node 20 * set resolutions for @types/react * downgrade @types/react to 18.2.28 * update mocha * update rimraf * update @types/js-dom * remove .lintstagedrc.js * upgrade next to latest * v0.61.4 * update lerna * update faker and rollup * update immer * fix yarn clean command * attempt to fix integration tests * attempt to stabilize integration tests * wip fix integration tests * skip unstable integration test * Add changeset --------- Co-authored-by: Dalibor Tosic <dalibortosic00@gmail.com> Co-authored-by: Nikola <nikolabijelic14@gmail.com>
68 lines
1.7 KiB
YAML
68 lines
1.7 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions: {}
|
|
jobs:
|
|
release:
|
|
permissions:
|
|
contents: write # to create release (changesets/action)
|
|
pull-requests: write # to create pull request (changesets/action)
|
|
|
|
name: ${{ matrix.channel }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
max-parallel: 1
|
|
matrix:
|
|
channel:
|
|
- latest
|
|
- dev
|
|
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 20.x
|
|
cache: yarn
|
|
registry-url: https://registry.npmjs.org
|
|
key: node20
|
|
|
|
- name: Install dependencies
|
|
run: yarn
|
|
|
|
- name: Prepare release
|
|
run: yarn prerelease
|
|
|
|
# https://github.com/changesets/action
|
|
- name: Create release pull request or Publish to npm
|
|
if: matrix.channel == 'latest'
|
|
uses: changesets/action@v1
|
|
with:
|
|
# defined in package.json#scripts
|
|
version: yarn changesetversion
|
|
publish: yarn changeset publish
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
YARN_ENABLE_IMMUTABLE_INSTALLS: false
|
|
|
|
# https://github.com/atlassian/changesets/blob/master/docs/snapshot-releases.md
|
|
- name: Release to @dev channel
|
|
if: matrix.channel == 'dev'
|
|
run: |
|
|
yarn changeset version --snapshot
|
|
yarn changeset publish --tag dev
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|