Skip to content

Commit

Permalink
Update workflow and make available on npm repo in addition to github
Browse files Browse the repository at this point in the history
  • Loading branch information
rosskevin committed Jan 22, 2025
1 parent dfb71e6 commit f4958ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
- name: Prepare repository
run: git fetch --unshallow --tags

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 'latest'
cache: 'yarn'

# allow the lock file to change (updating our own workspace versions in monorepo)
Expand All @@ -30,4 +30,10 @@ jobs:
with:
commit_message: Apply yarn.lock changes

# publishes canaries and releases to github
- run: yarn release

# cannot run this on branches because it doesn't keep the canary version from auto shipit, can only secondarily publish to npm for main branch
- name: Publish secondarily to npm
run: npm publish --access=public --ignore-scripts --@alienfast:registry='https://registry.npmjs.org'
if: github.ref == 'refs/heads/main'
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# provide this for the github actions
@alienfast:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
//registry.npmjs.org/:_authToken=${NPM_TOKEN}

0 comments on commit f4958ac

Please sign in to comment.