Skip to content

Commit d026592

Browse files
jellizavetamaximtop
authored andcommitted
Pull request 345: AG-44392 Add deploy to npmjs
Squashed commit of the following: commit 3b0cda9 Author: Elizaveta <[email protected]> Date: Thu Jul 24 16:52:34 2025 +0300 manual increment commit 7cca3eb Author: Elizaveta <[email protected]> Date: Thu Jul 24 16:04:49 2025 +0300 update bamboo commit 59050a8 Author: Elizaveta <[email protected]> Date: Thu Jul 24 14:20:33 2025 +0300 remove increment commit 5bf73ef Author: Atlassian Bamboo <[email protected]> Date: Thu Jul 24 14:16:35 2025 +0300 skipci: Automatic increment build number commit 20e8ac5 Author: Elizaveta <[email protected]> Date: Thu Jul 24 14:16:25 2025 +0300 update changelog commit e150918 Author: Elizaveta <[email protected]> Date: Thu Jul 24 14:15:40 2025 +0300 update cnagelog commit 7c07166 Author: Atlassian Bamboo <[email protected]> Date: Wed Jul 23 17:53:07 2025 +0300 skipci: Automatic increment build number commit c02ac24 Author: Elizaveta <[email protected]> Date: Wed Jul 23 17:52:52 2025 +0300 update changelog version commit 9d893dd Author: Atlassian Bamboo <[email protected]> Date: Wed Jul 23 17:50:43 2025 +0300 skipci: Automatic increment build number commit ad395ca Author: Elizaveta <[email protected]> Date: Wed Jul 23 17:50:33 2025 +0300 update version commit 0200cb5 Author: Elizaveta <[email protected]> Date: Wed Jul 23 17:47:22 2025 +0300 update version and changelog commit 97a7710 Author: Atlassian Bamboo <[email protected]> Date: Tue Jul 22 17:40:57 2025 +0300 skipci: Automatic increment build number commit 4077f4c Author: Elizaveta <[email protected]> Date: Tue Jul 22 17:39:17 2025 +0300 add artifact commit b87e806 Author: Elizaveta <[email protected]> Date: Tue Jul 22 17:37:44 2025 +0300 add tgz commit 7783d82 Author: Elizaveta <[email protected]> Date: Tue Jul 22 17:35:49 2025 +0300 fix source plan commit 090f89d Author: Elizaveta <[email protected]> Date: Tue Jul 22 17:30:34 2025 +0300 AG-44392 Add deploy to npmjs
1 parent 6a4b0dc commit d026592

File tree

7 files changed

+85
-4
lines changed

7 files changed

+85
-4
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [v3.0.0] - 2025-07-23
9+
10+
### Added
11+
12+
- Deploy to `npmjs`.
13+
14+
[v3.0.0]: https://github.com/AdguardTeam/FiltersCompiler/compare/v2.0.6...v3.0.0
15+
816
## [v2.0.6] - 2025-07-21
917

1018
### Added

bamboo-specs/bamboo.yaml

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

77
---
88
!include 'build.yaml'
9+
10+
---
11+
!include 'deploy.yaml'
12+
13+
---
14+
!include 'permissions.yaml'

bamboo-specs/build.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Build:
3636
pnpm install ${bamboo.varsPnpm}
3737
pnpm build
3838
pnpm build-txt
39+
pnpm pack --out filters-compiler.tgz
3940
- inject-variables:
4041
file: dist/build.txt
4142
scope: RESULT
@@ -61,6 +62,11 @@ Build:
6162
echo "Size before cleanup:" && du -h | tail -n 1
6263
rm -rf node_modules
6364
echo "Size after cleanup:" && du -h | tail -n 1
65+
artifacts:
66+
- name: filters-compiler.tgz
67+
pattern: filters-compiler.tgz
68+
shared: true
69+
required: true
6470
requirements:
6571
- adg-docker: 'true'
6672

bamboo-specs/deploy.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
version: 2
3+
deployment:
4+
name: filters-compiler - deploy
5+
source-plan: AJL-FILTRCOMPBUILD
6+
release-naming: ${bamboo.inject.version}
7+
environments:
8+
- npmjs
9+
npmjs:
10+
docker:
11+
image: adguard/node-ssh:22.14--0
12+
volumes:
13+
${system.PNPM_DIR}: "${bamboo.cachePnpm}"
14+
triggers: [ ]
15+
tasks:
16+
- checkout:
17+
force-clean-build: true
18+
- artifact-download:
19+
artifacts:
20+
- name: filters-compiler.tgz
21+
- script:
22+
interpreter: SHELL
23+
scripts:
24+
- |-
25+
set -e
26+
set -x
27+
28+
# Fix mixed logs
29+
exec 2>&1
30+
31+
ls -la
32+
33+
export NPM_TOKEN=${bamboo.npmSecretToken}
34+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
35+
npm publish filters-compiler.tgz --access public
36+
requirements:
37+
- adg-docker: 'true'
38+
notifications:
39+
- events:
40+
- deployment-started-and-finished
41+
recipients:
42+
- webhook:
43+
name: Deploy webhook
44+
url: http://prod.jirahub.service.eu.consul/v1/webhook/bamboo

bamboo-specs/increment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ variables:
99

1010
stages:
1111
- Increment:
12-
manual: false
12+
manual: true
1313
final: false
1414
jobs:
1515
- Increment

bamboo-specs/permissions.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
version: 2
3+
deployment:
4+
name: filters-compiler - deploy
5+
deployment-permissions:
6+
- groups:
7+
- extensions-developers
8+
permissions:
9+
- view
10+
environment-permissions:
11+
- npmjs:
12+
- groups:
13+
- extensions-developers
14+
permissions:
15+
- view
16+
- deploy

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "adguard-filters-compiler",
3-
"version": "2.0.6",
2+
"name": "@adguard/filters-compiler",
3+
"version": "3.0.0",
44
"description": "AdGuard filters compiler",
55
"homepage": "http://adguard.com",
66
"type": "module",
@@ -21,7 +21,8 @@
2121
"increment": "pnpm version patch --no-git-tag-version",
2222
"build-txt": "node tasks/build-txt.mjs",
2323
"build-schemas": "node --experimental-specifier-resolution=node tasks/build-schemas/index.js",
24-
"prepare": "husky install"
24+
"prepare": "husky install",
25+
"tgz": "pnpm pack --out filters-compiler.tgz"
2526
},
2627
"engines": {
2728
"node": ">=20"

0 commit comments

Comments
 (0)