This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy react-query semeantic-release.yml
- Loading branch information
1 parent
6409b17
commit 352c2d0
Showing
3 changed files
with
47 additions
and
16 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: react-datetime tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: "node ${{ matrix.node }} ${{ matrix.os }} " | ||
runs-on: "${{ matrix.os }}" | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node: [12, 10] | ||
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- run: npm i -g yarn | ||
- run: yarn --frozen-lockfile | ||
- run: yarn test:ci | ||
|
||
publish-module: | ||
name: "Publish Module to NPM" | ||
needs: test | ||
if: github.ref == 'refs/heads/master' #publish only when merged in master, not on PR | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
registry-url: https://registry.npmjs.org/ | ||
- run: npm i -g yarn | ||
- run: yarn --frozen-lockfile | ||
- run: npx semantic-release@17 | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | ||
GH_TOKEN: ${{secrets.GH_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
352c2d0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to following URLs: