Skip to content

Commit

Permalink
chore(release): try out releasing to github registry
Browse files Browse the repository at this point in the history
  • Loading branch information
venikx committed Jun 7, 2023
1 parent cbb91c9 commit 39ab2d2
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
node-version: '18'
- run: npm ci --prefer-offline

- name: Create a Release Pull Request or Publish to Registry
- name: Create a Release PR or Publish to NPM Registry
id: changesets
uses: changesets/action@v1
with:
Expand All @@ -34,6 +34,24 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- uses: actions/setup-node@v3
with:
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
node-version: '18'
registry-url: 'https://npm.pkg.github.com'
scope: '@equinor'

- name: Create a Release PR or Publish to Github Registry
id: changesets
uses: changesets/action@v1
with:
version: npm run version
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish_released_docs:
needs: release_or_publish_package
if: needs.release_or_publish_package.outputs.was_published == 'true'
Expand Down

0 comments on commit 39ab2d2

Please sign in to comment.