Skip to content

Commit def1b22

Browse files
committed
feat(deploy): Added autodeploy system
1 parent cd77c47 commit def1b22

File tree

7 files changed

+518
-4018
lines changed

7 files changed

+518
-4018
lines changed

.github/FUNDING.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These are supported funding model platforms
2+
3+
github: [andris9] # enable once enrolled
4+
custom: ['https://www.paypal.me/nodemailer']

.github/workflows/release.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
id-token: write
10+
11+
name: release
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: google-github-actions/release-please-action@v3
17+
id: release
18+
with:
19+
release-type: node
20+
package-name: ${{vars.NPM_MODULE_NAME}}
21+
pull-request-title-pattern: 'chore${scope}: release ${version} [skip-ci]'
22+
# The logic below handles the npm publication:
23+
- uses: actions/checkout@v4
24+
# these if statements ensure that a publication only occurs when
25+
# a new release is created:
26+
if: ${{ steps.release.outputs.release_created }}
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
registry-url: 'https://registry.npmjs.org'
31+
if: ${{ steps.release.outputs.release_created }}
32+
- run: npm ci
33+
if: ${{ steps.release.outputs.release_created }}
34+
- run: npm publish --provenance --access public
35+
env:
36+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
37+
if: ${{ steps.release.outputs.release_created }}

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Run tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
strategy:
10+
matrix:
11+
node: [16.x, 18.x, 20.x, 21.x]
12+
os: [ubuntu-latest]
13+
runs-on: ${{ matrix.os }}
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Use Node.js ${{ matrix.node }}
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: ${{ matrix.node }}
20+
- run: npm install
21+
- run: npm test

lib/libqp.js

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

33
'use strict';
44

5-
const stream = require('stream');
5+
const { Buffer } = require('node:buffer');
6+
const stream = require('node:stream');
67
const Transform = stream.Transform;
78

89
/**

0 commit comments

Comments
 (0)