How to fix the error: apm CLI must be installed with semantic-release

I do get the following error apm CLI must be installed with semantic-release

ci.yml

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>name: CI
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
if: github.ref_name == 'main'
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: ⬇️ Get latest code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ⬇️ Get Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: ???? Install dependencies
run: npm ci
- name: ????️ Build
run: npm run build
- name: ⬆️ Upload ftp
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USER }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: ${{ vars.FTP_SOURCE }}
server-dir: ${{ vars.FTP_DESTINATION }}
- name: ???? Semantic release
run: npx semantic-release --branches main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
</code>
<code>name: CI on: push: branches: - main concurrency: group: ${{ github.workflow }}-${{ github.head_ref }} cancel-in-progress: true jobs: deploy: runs-on: ubuntu-latest if: github.ref_name == 'main' permissions: contents: write # to be able to publish a GitHub release issues: write # to be able to comment on released issues pull-requests: write # to be able to comment on released pull requests id-token: write # to enable use of OIDC for npm provenance steps: - name: ⬇️ Get latest code uses: actions/checkout@v4 with: fetch-depth: 0 - name: ⬇️ Get Node.js uses: actions/setup-node@v3 with: node-version: 20 cache: 'npm' - name: ???? Install dependencies run: npm ci - name: ????️ Build run: npm run build - name: ⬆️ Upload ftp uses: SamKirkland/[email protected] with: server: ${{ secrets.FTP_HOST }} username: ${{ secrets.FTP_USER }} password: ${{ secrets.FTP_PASSWORD }} local-dir: ${{ vars.FTP_SOURCE }} server-dir: ${{ vars.FTP_DESTINATION }} - name: ???? Semantic release run: npx semantic-release --branches main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} </code>
name: CI

on:
  push:
    branches:
      - main

concurrency:
  group: ${{ github.workflow }}-${{ github.head_ref }}
  cancel-in-progress: true

jobs:
  deploy:
    runs-on: ubuntu-latest
    if: github.ref_name == 'main'
    permissions:
      contents: write # to be able to publish a GitHub release
      issues: write # to be able to comment on released issues
      pull-requests: write # to be able to comment on released pull requests
      id-token: write # to enable use of OIDC for npm provenance
    steps:
      - name: ⬇️ Get latest code
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - name: ⬇️ Get Node.js
        uses: actions/setup-node@v3
        with:
          node-version: 20
          cache: 'npm'
      - name: ???? Install dependencies
        run: npm ci
      - name: ????️ Build
        run: npm run build
      - name: ⬆️ Upload ftp
        uses: SamKirkland/[email protected]
        with:
          server: ${{ secrets.FTP_HOST }}
          username: ${{ secrets.FTP_USER }}
          password: ${{ secrets.FTP_PASSWORD }}
          local-dir: ${{ vars.FTP_SOURCE }}
          server-dir: ${{ vars.FTP_DESTINATION }}
      - name: ???? Semantic release
        run: npx semantic-release --branches main
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Version

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>{
...
"@semantic-release/apm-config": "^9.0.1",
"semantic-release": "^23.1.1",
},
"release": {
"extends": "@semantic-release/github"
}
</code>
<code>{ ... "@semantic-release/apm-config": "^9.0.1", "semantic-release": "^23.1.1", }, "release": { "extends": "@semantic-release/github" } </code>
{
...
  "@semantic-release/apm-config": "^9.0.1",
  "semantic-release": "^23.1.1",
},
"release": {
  "extends": "@semantic-release/github"
}

Note

  • I didn’t add any NPM_TOKEN because I don’t want to push it over on npm.
  • I’ve tried to add an empty string as a value for NPM_TOKEN

Actually, and as I weren’t using NPM, I’ve changed and used @semantic-release/github intead

npm un @semantic-release/apm-config
npm i @semantic-release/github -D

And voilà

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật