Skip to content

Commit 7b98197

Browse files
Merge pull request #3 from outshift-open/fix/add-release
feat: add release
2 parents b53596f + 0ca00c3 commit 7b98197

File tree

4 files changed

+43
-175
lines changed

4 files changed

+43
-175
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,39 @@
1-
# name: Release
2-
# on:
3-
# push:
4-
# branches:
5-
# - main
6-
# - beta
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- beta
77

8-
# permissions:
9-
# packages: write
10-
# contents: write
11-
# issues: write
12-
# pull-requests: write
13-
# id-token: write
14-
# actions: write
8+
permissions:
9+
packages: write
10+
contents: write
11+
issues: write
12+
pull-requests: write
13+
id-token: write
14+
actions: write
1515

16-
# jobs:
17-
# release:
18-
# name: Release
19-
# runs-on: ubuntu-latest
20-
# steps:
21-
# - name: Checkout
22-
# uses: actions/checkout@v3
23-
# with:
24-
# fetch-depth: 0
25-
# persist-credentials: true
26-
# - name: Setup Node.js
27-
# uses: actions/setup-node@v4
28-
# with:
29-
# node-version: latest
30-
# - name: Install dependencies
31-
# run: yarn install
32-
# - name: Build package
33-
# run: yarn lib:build
34-
# - name: Release
35-
# env:
36-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
# GITHUB_NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38-
# GITHUB_NPM_CONFIG_REGISTRY: https://npm.pkg.github.com/
39-
# DEVHUB_NPM_TOKEN: ${{ secrets.DEVHUB_CLOUD_TOKEN }}
40-
# DEVHUB_NPM_CONFIG_REGISTRY: https://artifactory.devhub-cloud.cisco.com/artifactory/api/npm/outshift-npm/
41-
# run: yarn semantic-release
16+
jobs:
17+
release:
18+
name: Release
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v3
23+
with:
24+
fetch-depth: 0
25+
persist-credentials: true
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: latest
30+
- name: Install dependencies
31+
run: yarn install
32+
- name: Build package
33+
run: yarn lib:build
34+
- name: Release
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
run: npx semantic-release@21.0.2

license-header.txt

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

plugins/release-plugin.js

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

release.config.cjs

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,12 @@ module.exports = {
1818
changelogFile: "CHANGELOG.md"
1919
}
2020
],
21-
// [
22-
// "./plugins/release-plugin.js",
23-
// {
24-
// registries: {
25-
// "github": {
26-
// pkgRoot: "packages/open-ui-kit/dist"
27-
// },
28-
// "devhub": {
29-
// pkgRoot: "packages/open-ui-kit/dist"
30-
// }
31-
// },
32-
// }
33-
// ],
21+
[
22+
"@semantic-release/npm",
23+
{
24+
"pkgRoot": "packages/open-ui-kit/dist"
25+
}
26+
],
3427
[
3528
"@semantic-release/github",
3629
{

0 commit comments

Comments
 (0)