Skip to content

Commit

Permalink
Merge branch 'main' of github.com:deep-foundation/react-use-are-packa…
Browse files Browse the repository at this point in the history
…ges-installed
  • Loading branch information
FreePhoenix888 committed Jun 3, 2023
2 parents d0c3750 + d394ab5 commit 9cbad16
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ on:
branches: main
paths:
- package.json
- .github/workflows/main.yml
workflow_dispatch:

env:
NODE_VERSION: 18

jobs:
build-and-test:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -20,19 +21,6 @@ jobs:
node-version: ${{env.NODE_VERSION}}
- run: npm i
- run: npm run build
- run: npm test

publish-npm:
needs: build-and-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: JS-DevTools/npm-publish@v2
with:
node-version: ${{env.NODE_VERSION}}
registry-url: https://registry.npmjs.org/
- run: npm i
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
token: ${{ secrets.NPM_TOKEN }}

0 comments on commit 9cbad16

Please sign in to comment.