Skip to content

Fix emoji rendering in code blocks with UTF-8 decoding and emoji font… #6

Fix emoji rendering in code blocks with UTF-8 decoding and emoji font…

Fix emoji rendering in code blocks with UTF-8 decoding and emoji font… #6

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
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: '20'
- name: Install Dependencies
run: npm ci
- name: Create .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# There is possibly a better way to do this.
# One problem this has is it will still publish snapshots when it's a documentation/pipeline only change
# But maybe that's a good thing, an abundance of caution that a configuration change isn't breaking something.
# Also, rather than inspecting the output of the changeset version command, we could use `npx changeset status --output=summary.json` and inspect that.
- name: Publish Snapshot
run: |
OUTPUT=$(npx changeset version --snapshot ${COMMIT_SHA::8} 2>&1)
echo "$OUTPUT"
if echo "$OUTPUT" | grep -q "No unreleased changesets found, exiting"; then
echo "No unreleased changesets found. Skipping snapshot publish."
exit 0
fi
npx changeset publish --tag prerelease
git checkout -- .
env:
COMMIT_SHA: ${{ github.sha }}
- name: Create Release Pull Request
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}