Skip to content

Commit

Permalink
🌿 Update README.md and configure publish
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jul 17, 2024
1 parent caad5a3 commit 7af0278
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1,268 deletions.
2 changes: 2 additions & 0 deletions .fernignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# Specify files that shouldn't be modified by Fern
.github/workflows/ci.yml
README.md
12 changes: 3 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

publish:
needs: [ compile, test ]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand All @@ -46,12 +46,6 @@ jobs:
- name: Publish to npm
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
if [[ ${GITHUB_REF} == *alpha* ]]; then
npm publish --access public --tag alpha
elif [[ ${GITHUB_REF} == *beta* ]]; then
npm publish --access public --tag beta
else
npm publish --access public
fi
npm publish --access public --tag alpha
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit 7af0278

Please sign in to comment.