Skip to content

Commit 8d24ecd

Browse files
committed
Rebasing on to master.
1 parent 2af418e commit 8d24ecd

File tree

3 files changed

+50
-12
lines changed

3 files changed

+50
-12
lines changed

.changeset/red-spoons-shop.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@lottiefiles/react-lottie-player': patch
3+
---
4+
5+
changes type for the renderer variable

.github/workflows/release.yml

Lines changed: 44 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ name: Release
22

33
on:
44
push:
5-
branches: [master, beta]
5+
branches: [develop]
66

77
jobs:
8-
release:
9-
name: Release
10-
8+
build:
119
runs-on: ubuntu-latest
1210
timeout-minutes: 15
1311

@@ -20,7 +18,6 @@ jobs:
2018
uses: actions/checkout@v2
2119
with:
2220
fetch-depth: 0
23-
2421
- name: Cache NPM
2522
uses: actions/cache@v2
2623
env:
@@ -30,13 +27,11 @@ jobs:
3027
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn-lock.json') }}
3128
restore-keys: |
3229
${{ runner.os }}-build-${{ env.cache-name }}-
33-
3430
- name: Setup Node.js ${{ matrix.node-version }}
3531
uses: actions/setup-node@v1
3632
with:
3733
node-version: ${{ matrix.node-version }}
3834
registry-url: 'https://npm.pkg.github.com'
39-
4035
- name: Install dependencies
4136
run:
4237
yarn install |
@@ -49,17 +44,55 @@ jobs:
4944
run: yarn run start-and-run-tests
5045
env:
5146
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
52-
5347
- name: Run linting
5448
run: yarn lint
5549
env:
5650
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
57-
51+
- name: Bump version
52+
run: yarn run version
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5855
- name: Build project
5956
run: yarn build
6057

61-
- name: Release
62-
run: yarn release
58+
release-npm:
59+
needs: build
60+
name: Release npm
61+
runs-on: ubuntu-latest
62+
steps:
63+
- uses: actions/checkout@v1
64+
- uses: actions/setup-node@v1
65+
with:
66+
node-version: ${{ matrix.node-version }}
67+
registry-url: https://registry.npmjs.org/
68+
- run: yarn install --frozen-lockfile
69+
- run: npm publish --tag beta --access public
70+
env:
71+
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
72+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73+
NPM_TOKEN: ${{ secrets.NPMJS_TOKEN }}
74+
GIT_COMMIT: ${{ github.sha }}
75+
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
76+
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
77+
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
78+
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
79+
80+
release-gpr:
81+
needs: build
82+
name: Release gpr
83+
runs-on: ubuntu-latest
84+
steps:
85+
- uses: actions/checkout@v1
86+
- uses: actions/setup-node@v1
87+
with:
88+
node-version: ${{ matrix.node-version }}
89+
registry-url: https://npm.pkg.github.com/
90+
scope: '@lottiefiles'
91+
- run: yarn install --frozen-lockfile
92+
- run:
93+
echo "//npm.pkg.github.com:_authToken=${{ secrets.GITHUB_TOKEN }}" >
94+
~/.npmrc
95+
- run: npm publish --tag beta --@lottiefiles:registry=https://npm.pkg.github.com/
6396
env:
6497
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6598
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"lint:fix": "eslint . --ext .ts,.tsx,.js --fix",
9898
"storybook": "start-storybook -p 9009",
9999
"build-storybook": "build-storybook",
100-
"release": "semantic-release"
100+
"version": "yarn changeset version"
101101
},
102102
"repository": {
103103
"type": "git",

0 commit comments

Comments
 (0)