Skip to content

Commit 1c39633

Browse files
committed
Changed releases workflows
1 parent 756c1cc commit 1c39633

File tree

3 files changed

+26
-14
lines changed

3 files changed

+26
-14
lines changed

.github/workflows/publish.yml renamed to .github/workflows/publish-reactlib.yml

+1-14
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,9 @@ name: publish
22
on:
33
push:
44
tags:
5-
- 'v[0-9]+.[0-9]+.[0-9]+*'
5+
- 'v[0-9]+.[0-9]+.[0-9]+*.react'
66
jobs:
7-
types:
8-
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v2
11-
- uses: actions/setup-node@v1
12-
with:
13-
node-version: 16
14-
registry-url: 'https://registry.npmjs.org'
15-
- run: npm install --save-dev
16-
- run: npm publish --workspace packages/google-analytics-embed-types
17-
env:
18-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
197
reactlib:
20-
needs: [types]
218
runs-on: ubuntu-latest
229
steps:
2310
- uses: actions/checkout@v2
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: publish
2+
on:
3+
push:
4+
tags:
5+
- 'v[0-9]+.[0-9]+.[0-9]+*.types'
6+
jobs:
7+
types:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v1
12+
with:
13+
node-version: 16
14+
registry-url: 'https://registry.npmjs.org'
15+
- run: npm install --save-dev
16+
- run: npm publish --workspace packages/google-analytics-embed-types
17+
env:
18+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

CONTRIBUTING.md

+7
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ backend authentication.
2020
the frontend authentication.
2121

2222
Please check the whether both examples working before submitting a PR.
23+
24+
## Releases
25+
26+
When you are releasing a new version, NPM packages are automatically
27+
updating according to your release tag. As an example, if you released a
28+
tag `v0.0.2.react` github will automatically publish the react library
29+
to NPM.

0 commit comments

Comments
 (0)