fix: revert peer deprecations (#3802) #1077
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: Release | |
on: | |
push: | |
branches: [main, graphiql-v4] | |
permissions: {} | |
jobs: | |
release: | |
permissions: | |
contents: write # for changesets/action to git push | |
environment: deploy | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: yarn | |
- name: Cache node modules | |
uses: actions/cache@v4 | |
id: cache-modules | |
with: | |
path: node_modules | |
key: node_modules-${{hashFiles('yarn.lock')}} | |
restore-keys: node_modules- | |
- run: yarn install --frozen-lockfile --immutable | |
- name: Create Release Pull Request or Publish to npm | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
version: yarn ci:version | |
# This expects you to have a script called release which does a build for your packages and calls changeset publish | |
publish: yarn release | |
env: | |
# only use GH token here, because GITHUB_TOKEN is no longer allowed to create PRs | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
# for vscode marketplace, see https://github.com/microsoft/vscode-vsce/blob/194d59b975523696362ead891dc0f3ddd277b3bd/README.md#linux | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
# for ovsx, see https://github.com/eclipse/openvsx/blob/master/cli/README.md#publish-extensions | |
OVSX_PAT: ${{ secrets.OPEN_VSX_TOKEN }} |