Skip to content

Fix the broken releases following bringing the Compiled website in. (… #793

Fix the broken releases following bringing the Compiled website in. (…

Fix the broken releases following bringing the Compiled website in. (… #793

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
# Needed to ensure we always use the atlas-dst-bot creds.
persist-credentials: false
- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
- name: Install Dependencies
run: yarn
- name: Create Release Pull Request or Publish to npm
uses: changesets/action@v1
with:
# this expects you to have a script called release which does a build for your packages and calls changeset publish
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.ATLAS_DST_BOT_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.COMPILED_CSS_IN_JS_NPM_TOKEN }}