feat: in-page navigation (#2551) #1566
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: Publish next to Github Packages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish-next: | |
runs-on: ubuntu-latest | |
name: Publish next to Github Packages | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.node-version' | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v2 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
# The yarn cache is not node_modules | |
- name: Install dependencies | |
run: yarn --prefer-offline | |
# Setup .npmrc file to publish to GitHub Packages | |
- name: Set up node | |
uses: actions/setup-node@v3 | |
with: | |
registry-url: 'https://npm.pkg.github.com' | |
node-version-file: '.node-version' | |
# Publish to GitHub Packages | |
- run: yarn publish --no-git-tag-version --prerelease --preid alpha-$(date +%Y%m%d%H%M%S) --tag next | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |