Skip to content

Commit

Permalink
unify workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
springuper committed Nov 30, 2022
1 parent 637706b commit bf635c7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 24 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/publish.yaml

This file was deleted.

14 changes: 14 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,17 @@ jobs:
- name: Print release output
if: ${{ steps.release.outputs.released == 'true' }}
run: echo Release ID ${{ steps.release.outputs.release_id }}
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
if: ${{ steps.release.outputs.released == 'true' }}
with:
node-version: '14.x'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@adrise'
- run: yarn --frozen-lockfile
if: ${{ steps.release.outputs.released == 'true' }}
- run: npm publish
if: ${{ steps.release.outputs.released == 'true' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit bf635c7

Please sign in to comment.