-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Vinicius Reis <vinicius.reis@nextcloud.com>
- Loading branch information
Vinicius Reis
committed
Aug 11, 2022
1 parent
66c9be0
commit 9d0b7fb
Showing
3 changed files
with
65 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ updates: | |
time: "03:00" | ||
timezone: Europe/Paris | ||
open-pull-requests-limit: 10 | ||
versioning-strategy: increase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 🔒 Check actor permission level | ||
uses: skjnldsv/check-actor-permission@v2 | ||
with: | ||
require: admin | ||
|
||
- name: 📥 Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: 🪄 Read package.json node and npm engines version | ||
uses: skjnldsv/read-package-engines-version-actions@v1.2 | ||
id: versions | ||
with: | ||
fallbackNode: '^16' | ||
fallbackNpm: '^8' | ||
|
||
- name: 🔧 Setup Node (NPM Registry) | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ steps.versions.outputs.nodeVersion }} | ||
cache: 'npm' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: 📦 Install dependencies & build | ||
run: | | ||
npm ci | ||
npm run build | ||
- name: 📣 Publish package on NPM | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: 🔧 Setup Github Registry | ||
uses: actions/setup-node@v3 | ||
with: | ||
registry-url: 'https://npm.pkg.github.com' | ||
|
||
- name: 📣 Publish package on GPR | ||
run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |