Skip to content

chore: try other stuff #854

chore: try other stuff

chore: try other stuff #854

name: Deploy Prerelease
on:
push:
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.ADMIN_TOKEN }}
ref: ${{ github.base_ref || github.ref_name }}
- uses: actions/setup-node@v4
with:
node-version-file: package.json
registry-url: "https://registry.npmjs.org"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Deploy prerelease and storybook
env:
NEXT_RELEASE_ENABLED: ${{ secrets.NEXT_RELEASE_ENABLED }}
# https://github.com/storybookjs/storybook-deployer/issues/77#issuecomment-618560481
GH_TOKEN_FOR_STORYBOOK: ${{ github.actor }}:${{ secrets.ADMIN_TOKEN }}
NPM_CONFIG_PROVENANCE: true
BRANCH: ${{ github.base_ref || github.ref_name }}
run: "${{ github.workspace }}/.github/scripts/publishPrerelease.sh"