Skip to content

Commit

Permalink
testing package release
Browse files Browse the repository at this point in the history
  • Loading branch information
tarun-khanna committed Jan 3, 2024
1 parent b4c3b14 commit 6208998
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: i18nify Release
on:
workflow_dispatch:
push:
branches: [master]

env:
GITHUB_ACCESS_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
Expand All @@ -26,15 +25,13 @@ jobs:
- name: Create Release Pull Request & Publish packages
id: changesets
uses: changesets/action@v1
if: github.event_name != 'workflow_dispatch' # only run on master merges
env:
GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
with:
publish: yarn release
commit: 'build(i18nify): update version'
title: 'build(i18nify): update version'
commit: 'build(i18nify-js): update version'
title: 'build(i18nify-js): update version'
- name: Publish to public npm registry
if: steps.changesets.outputs.published == 'true' || github.event_name == 'workflow_dispatch' # run when the package is published via changeset or if a release is triggered manually.
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: yarn publish-npm

0 comments on commit 6208998

Please sign in to comment.