Skip to content

Commit cd7e88e

Browse files
authored
Merge pull request #455 from nextcloud/feature/release-process
Release process
2 parents d664645 + 66302fb commit cd7e88e

File tree

6 files changed

+103
-61
lines changed

6 files changed

+103
-61
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -8,62 +8,4 @@ updates:
88
time: "03:00"
99
timezone: Europe/Paris
1010
open-pull-requests-limit: 10
11-
ignore:
12-
- dependency-name: typedoc
13-
versions:
14-
- 0.20.16
15-
- 0.20.19
16-
- 0.20.21
17-
- 0.20.24
18-
- 0.20.25
19-
- 0.20.28
20-
- 0.20.29
21-
- 0.20.30
22-
- 0.20.32
23-
- 0.20.34
24-
- dependency-name: "@babel/core"
25-
versions:
26-
- 7.12.10
27-
- 7.12.13
28-
- 7.12.16
29-
- 7.12.17
30-
- 7.13.10
31-
- 7.13.13
32-
- 7.13.8
33-
- dependency-name: "@babel/preset-env"
34-
versions:
35-
- 7.12.11
36-
- 7.12.13
37-
- 7.12.16
38-
- 7.12.17
39-
- 7.13.10
40-
- 7.13.12
41-
- 7.13.8
42-
- 7.13.9
43-
- dependency-name: "@babel/cli"
44-
versions:
45-
- 7.12.10
46-
- 7.12.13
47-
- 7.12.16
48-
- 7.12.17
49-
- 7.13.0
50-
- 7.13.10
51-
- dependency-name: core-js
52-
versions:
53-
- 3.8.3
54-
- 3.9.0
55-
- 3.9.1
56-
- dependency-name: "@nextcloud/browserslist-config"
57-
versions:
58-
- 2.0.0
59-
- dependency-name: "@babel/preset-typescript"
60-
versions:
61-
- 7.12.13
62-
- 7.12.16
63-
- 7.12.17
64-
- dependency-name: typescript
65-
versions:
66-
- 4.0.7
67-
- dependency-name: node-notifier
68-
versions:
69-
- 8.0.1
11+
versioning-strategy: increase

.github/workflows/doc-publish.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Doc Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
11+
name: Publish doc
12+
steps:
13+
- name: Check actor permission level
14+
uses: skjnldsv/check-actor-permission@v2
15+
with:
16+
require: admin
17+
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
21+
- name: Read package.json node and npm engines version
22+
uses: skjnldsv/read-package-engines-version-actions@v1.2
23+
id: versions
24+
with:
25+
fallbackNode: '^16'
26+
fallbackNpm: '^8'
27+
28+
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
29+
uses: actions/setup-node@v3
30+
with:
31+
node-version: ${{ steps.versions.outputs.nodeVersion }}
32+
33+
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
34+
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
35+
36+
- name: Install dependencies & build
37+
run: |
38+
npm ci
39+
npm run build
40+
npm run build:doc
41+
42+
- name: Deploy
43+
uses: peaceiris/actions-gh-pages@v3
44+
with:
45+
github_token: ${{ secrets.GITHUB_TOKEN }}
46+
publish_dir: ./dist/doc

.github/workflows/publish.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: 🔒​ Check actor permission level
12+
uses: skjnldsv/check-actor-permission@v2
13+
with:
14+
require: admin
15+
16+
- name: 📥​ Checkout
17+
uses: actions/checkout@v3
18+
19+
- name: 🪄 Read package.json node and npm engines version
20+
uses: skjnldsv/read-package-engines-version-actions@v1.2
21+
id: versions
22+
with:
23+
fallbackNode: '^16'
24+
fallbackNpm: '^8'
25+
26+
- name: 🔧​ Setup Node (NPM Registry)
27+
uses: actions/setup-node@v3
28+
with:
29+
node-version: ${{ steps.versions.outputs.nodeVersion }}
30+
cache: 'npm'
31+
registry-url: 'https://registry.npmjs.org'
32+
33+
- name: 📦 Install dependencies & build
34+
run: |
35+
npm ci
36+
npm run build
37+
38+
- name: 📣 Publish package on NPM
39+
run: npm publish
40+
env:
41+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
42+
43+
- name: 🔧​ Setup Github Registry
44+
uses: actions/setup-node@v3
45+
with:
46+
registry-url: 'https://npm.pkg.github.com'
47+
48+
- name: 📣 Publish package on GPR
49+
run: npm publish
50+
env:
51+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## 2.0.0 - Draft
5+
## 2.0.0 - 2022-08-11
66
### Added
77
- Rollup as bundler
88
- ESM bundle

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
Nextcloud helpers related to authentication and the current user
44

5+
[![npm](https://img.shields.io/npm/v/@nextcloud/auth.svg)](https://www.npmjs.com/package/@nextcloud/auth)
6+
[![Documentation](https://img.shields.io/badge/Documentation-online-brightgreen)](https://nextcloud.github.io/nextcloud-auth/index.html)
7+
58
## Install
69

710
```sh

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nextcloud/auth",
3-
"version": "2.0.0-next",
3+
"version": "2.0.0",
44
"description": "Nextcloud helpers related to authentication and the current user",
55
"main": "dist/index.js",
66
"module": "dist/index.esm.js",

0 commit comments

Comments
 (0)