ci: remove node 14 (#744) #563
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
#********************************************************************* | |
# Copyright (c) Intel Corporation 2020 | |
# SPDX-License-Identifier: Apache-2.0 | |
#*********************************************************************/ | |
# This workflow will release new versions when required using semantic-release | |
name: Semantic-Release CI | |
on: | |
push: | |
branches: [main] | |
permissions: | |
contents: read | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0 | |
with: | |
egress-policy: audit | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
persist-credentials: false | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 | |
with: | |
node-version: "18.x" | |
- run: npm ci | |
- run: npm run compile --if-present | |
- run: rsync -a package.json README.md ./dist/ | |
- name: Semantic Release | |
uses: cycjimmy/semantic-release-action@61680d0e9b02ff86f5648ade99e01be17f0260a4 # v4.0.0 | |
with: | |
semantic_version: | |
19.0.5 # It is recommended to specify specifying version range | |
# for semantic-release. | |
env: | |
GITHUB_TOKEN: ${{ secrets.ROSIE_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |