Skip to content

Commit 8ab8b53

Browse files
committed
GithubActions WIP
1 parent 64d7e9b commit 8ab8b53

File tree

9 files changed

+36
-37
lines changed

9 files changed

+36
-37
lines changed

.github/workflows/testing.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
name: Testing
22
on:
3-
push:
43
pull_request:
54
branches:
65
- master
76
jobs:
87
testing:
9-
name: Testing
108
runs-on: ubuntu-latest
119
env:
1210
BS_ACCESS_KEY: ${{ secrets.BS_ACCESS_KEY }}

.npmignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ karma.conf.js
99
.editorconfig
1010
browserslist
1111
.cache
12-
travis
13-
.travis.yml
12+
ci
1413
tests
1514
tsconfig.json
1615
media

.travis.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# CHANGELOG
22

3-
## NEXT
3+
## 7.0.0-alpha.2
44

55
- Added tests in real browsers with Browserstack, so that we ensure the lib
66
works all the way back to IE11.
7+
- Switched to GitHub Actions
78

89
## 7.0.0-alpha.1
910

File renamed without changes.

ci/getVersion.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env node
2+
3+
process.stdout.write("v" + require("../package.json").version);

ci/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
testing:
8+
name: Testing
9+
runs-on: ubuntu-latest
10+
env:
11+
BS_ACCESS_KEY: ${{ secrets.BS_ACCESS_KEY }}
12+
BS_USERNAME: ${{ secrets.BS_USERNAME }}
13+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
- name: Set up Node
18+
uses: actions/setup-node@v1
19+
with:
20+
always-auth: true
21+
node-version: '12.x'
22+
- name: Installing Dependencies and Building the Package
23+
run: yarn install --frozen-lockfile
24+
- name: Logging Target Dist Tag
25+
run: echo $(node ci/getNpmDistTag.js)
26+
- name: Publishing
27+
run: npm publish --tag $(node ci/getNpmDistTag.js)

docs/release.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
- Update the changelog
44
- Update the package.json version
5-
- Ensure all tests pass in Travis
6-
- Merge into master (Travis will do the release based on the master branch)
5+
- Ensure all tests pass
6+
- Merge into master (The CI will do the rest)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "use-resize-observer",
3-
"version": "7.0.0-alpha.1",
3+
"version": "7.0.0-alpha.2",
44
"main": "dist/bundle.cjs.js",
55
"module": "dist/bundle.esm.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)