-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bcbfdad
commit 177a763
Showing
2 changed files
with
30 additions
and
5 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 |
---|---|---|
|
@@ -28,6 +28,9 @@ jobs: | |
with: | ||
node-version: 18 | ||
|
||
- name: Install deps | ||
run: npm i | ||
|
||
- name: Run tests | ||
run: npm run test | ||
|
||
|
@@ -50,6 +53,9 @@ jobs: | |
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install deps | ||
run: npm i | ||
|
||
- name: Run tests | ||
timeout-minutes: 1 | ||
run: npm run test | ||
|
@@ -60,25 +66,41 @@ jobs: | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
needs: test_push | ||
runs-on: ubuntu-20.04 | ||
|
||
permissions: | ||
checks: read | ||
statuses: write | ||
contents: write | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
ref: master | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install deps | ||
run: npm i | ||
|
||
- name: Create .npmrc | ||
run: | | ||
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc | ||
echo "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" >> .npmrc | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Release | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GH_USER: 'qiwibot' | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GIT_AUTHOR_EMAIL: '[email protected]' | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GIT_COMMITTER_EMAIL: '[email protected]' | ||
GIT_AUTHOR_NAME: '@qiwibot' | ||
GIT_COMMITTER_NAME: '@qiwibot' | ||
run: | | ||
npm link | ||
|
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 |
---|---|---|
|
@@ -102,3 +102,6 @@ dist | |
|
||
# TernJS port file | ||
.tern-port | ||
|
||
# Creds | ||
.npmrc |