-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change prelease and release environments, skip snapshots for now
- Loading branch information
1 parent
04d7600
commit d010260
Showing
3 changed files
with
38 additions
and
36 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
name: Snapshot release | ||
# name: Snapshot release | ||
|
||
# Releases a snapshot release when new commits merge to main | ||
# This ensures the release process is working as expected | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
# # Releases a snapshot release when new commits merge to main | ||
# # This ensures the release process is working as expected | ||
# on: | ||
# workflow_dispatch: | ||
# push: | ||
# branches: | ||
# - main | ||
|
||
jobs: | ||
release-snapshot: | ||
name: Publish snapshot release to npm | ||
runs-on: ubuntu-latest | ||
environment: release | ||
if: github.event_name != 'workflow_dispatch' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
# jobs: | ||
# release-snapshot: | ||
# name: Publish snapshot release to npm | ||
# runs-on: ubuntu-latest | ||
# environment: release | ||
# if: github.event_name != 'workflow_dispatch' | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# with: | ||
# submodules: recursive | ||
# fetch-depth: 0 | ||
|
||
- name: Setup | ||
uses: ./.github/actions/setup | ||
# - name: Setup | ||
# uses: ./.github/actions/setup | ||
|
||
- name: Set deployment token | ||
run: npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# - name: Set deployment token | ||
# run: npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" | ||
# env: | ||
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
# Remove this once https://github.com/changesets/changesets/issues/1195 is addressed | ||
- name: Temporarily exit pre-release mode to release a snapshot | ||
run: pnpm changeset pre exit | ||
# # Remove this once https://github.com/changesets/changesets/issues/1195 is addressed | ||
# - name: Temporarily exit pre-release mode to release a snapshot | ||
# run: pnpm changeset pre exit | ||
|
||
- name: Publish snapshots | ||
uses: seek-oss/changesets-snapshot@v0 | ||
with: | ||
pre-publish: pnpm build | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# - name: Publish snapshots | ||
# uses: seek-oss/changesets-snapshot@v0 | ||
# with: | ||
# pre-publish: pnpm build | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |