Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
R
react-pull-to-refresh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jason.yap
react-pull-to-refresh
Commits
6d6d8f5f
Commit
6d6d8f5f
authored
Aug 09, 2021
by
carlos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: using github actions
parent
ab58dd04
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
16 deletions
+59
-16
.github/workflows/npm-publish.yml
.github/workflows/npm-publish.yml
+28
-0
.github/workflows/unit-test.yml
.github/workflows/unit-test.yml
+31
-0
.travis.yml
.travis.yml
+0
-15
package.json
package.json
+0
-1
No files found.
.github/workflows/npm-publish.yml
0 → 100644
View file @
6d6d8f5f
name
:
Publish to Github Packages
on
:
push
:
tags
:
-
'
v*.*.*'
jobs
:
build
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Set env
run
:
echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV
-
name
:
Use Node.js ${{ matrix.node-version }}
uses
:
actions/setup-node@v1
with
:
node-version
:
'
12.x'
registry-url
:
'
https://registry.npmjs.org'
-
name
:
run build
run
:
|
yarn
yarn version --no-git-tag-version --no-commit-hooks --new-version ${RELEASE_VERSION/v}
yarn publish
env
:
NODE_AUTH_TOKEN
:
${{ secrets.NPM_TOKEN }}
.github/workflows/unit-test.yml
0 → 100644
View file @
6d6d8f5f
name
:
Node.js CI
on
:
push
:
branches
:
-
master
pull_request
:
branches
:
-
'
*'
jobs
:
build
:
if
:
"
!contains(github.event.commits[0].message,
'[SKIP
CI]')"
runs-on
:
ubuntu-latest
strategy
:
matrix
:
node-version
:
[
12.x
]
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Use Node.js ${{ matrix.node-version }}
uses
:
actions/setup-node@v1
with
:
node-version
:
${{ matrix.node-version }}
-
name
:
run test
run
:
|
yarn
yarn test
env
:
CI
:
true
.travis.yml
deleted
100644 → 0
View file @
ab58dd04
language
:
node_js
node_js
:
-
9
script
:
-
npm test
cache
:
directories
:
-
"
node_modules"
deploy
:
provider
:
npm
email
:
echoulen@gmail.com
api_key
:
$NPM_TOKEN
on
:
tags
:
true
skip_cleanup
:
true
package.json
View file @
6d6d8f5f
...
...
@@ -8,7 +8,6 @@
"dev"
:
"webpack-dev-server"
,
"pretest"
:
"rimraf dist && tslint --project . && tsc -p ."
,
"test"
:
"jest --config=jestconfig.json"
,
"prepublish"
:
"npm test"
,
"prepare"
:
"rimraf dist && tsc -p ."
},
"repository"
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment