release: cut the v16.1.9 release #93
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
name: CI/CD | |
on: | |
push: | |
branches: | |
- master # Cambia questo in base al tuo branch predefinito | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-tags: true | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install Dependencies | |
run: | | |
rm -rf dist | |
yarn install --frozen-lockfile --non-interactive | |
export PATH=$HOME/.yarn/bin:$PATH | |
- name: Lint | |
run: yarn lint | |
- name: Build | |
run: ./scripts/build.mjs | |
- name: Unit tests | |
run: yarn test:ci | |
- name: E2E tests | |
run: ./scripts/e2e-ci.mjs | |
- name: Build release | |
run: | | |
./scripts/release.mjs | |
./scripts/jenkins/create-build-artifacts.mjs | |
mkdir -p build-artifacts | |
mv dist/artifacts/**/*.tgz build-artifacts/ | |
zip -r build-artifacts.zip build-artifacts | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4.4.3 | |
with: | |
name: build-artifacts | |
path: build-artifacts.zip | |
# - name: Publish snapshots | |
#if: github.ref == 'refs/heads/main' # Cambia questo in base al tuo branch predefinito | |
#run: ./scripts/jenkins/publish-snapshots.sh | |
- name: Publish | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: ./scripts/publish.mjs |