Fix typo in README (#349) #173
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: Version | |
on: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: false | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
with: | |
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.17.1' | |
cache: 'yarn' | |
registry-url: https://registry.npmjs.org/ | |
- name: Install Dependencies | |
run: yarn install --immutable | |
- name: Create Release Pull Request or Publish | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
version: yarn run version | |
publish: yarn run release | |
createGithubReleases: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
version: | |
name: Version | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
with: | |
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.17.1' | |
cache: 'yarn' | |
registry-url: https://registry.npmjs.org/ | |
- name: Install Dependencies | |
run: yarn install --immutable | |
- name: New redocusaurus release | |
run: | | |
yarn workspace redocusaurus exec "sh $PWD/scripts/release.sh" >> $GITHUB_ENV | |
- name: Create Github Release | |
if: | | |
env.github_release == 'yes' | |
uses: softprops/action-gh-release@master | |
with: | |
body_path: latest-CHANGELOG.md | |
tag_name: v${{ env.package_version }} | |
target_commitish: ${{ github.sha }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |