Skip to content

feat: in-page navigation (#2551) #1566

feat: in-page navigation (#2551)

feat: in-page navigation (#2551) #1566

Workflow file for this run

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 }}