Packages Deploy #18
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
# Action to publish packages under the `next` tag for testing | |
# Packages are versioned as `0.0.0-{tag}-DATETIMESTAMP` | |
name: Packages Deploy | |
on: workflow_dispatch | |
jobs: | |
publish: | |
name: Publish Dev Packages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup NodeJS | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20 | |
- name: Setup Yarn | |
run: | | |
npm install -g yarn | |
echo "Yarn version: $(yarn -v)" | |
echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Version packages | |
run: yarn changeset version --no-git-tag --snapshot dev | |
- name: Publish | |
run: yarn changeset publish --tag dev |