Skip to content

Commit ad7a6a4

Browse files
committed
ci: prepare for releasing v2.0-beta.0 using GitHub actions
1 parent 41c26a7 commit ad7a6a4

File tree

3 files changed

+47
-3
lines changed

3 files changed

+47
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Node.js Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 12.16
15+
- run: npm ci
16+
- run: npm test
17+
18+
publish-npm:
19+
needs: build
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-node@v1
24+
with:
25+
node-version: 12.16
26+
registry-url: https://registry.npmjs.org/
27+
- run: npm ci
28+
- run: npm publish
29+
env:
30+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
31+
32+
publish-gpr:
33+
needs: build
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v2
37+
- uses: actions/setup-node@v1
38+
with:
39+
node-version: 12.16
40+
registry-url: https://npm.pkg.github.com/
41+
- run: npm ci
42+
- run: npm publish
43+
env:
44+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

77

8-
## [unreleased]
8+
## [2.0.0-beta.0]
99

1010
Rewrite to use modern React class syntax and Context API thus removing use of deprecated React APIs and legacy browser
1111
support. Compatible with v1, but your code may break if it has relied on undocumented edge cases or internal behavior.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-tabbordion",
3-
"description": "React Tabs, Accordion, Panel, Checkbox list, Radio list Component",
4-
"version": "2.0.0-rc.0",
3+
"description": "Components and hooks to create your own React Tabs and Accordion components",
4+
"version": "2.0.0-beta.0",
55
"author": "Vesa Piittinen <[email protected]>",
66
"bugs": {
77
"url": "https://github.com/Merri/react-tabbordion/issues"

0 commit comments

Comments
 (0)