Merge remote-tracking branch 'origin/main' into next #173
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: Build | |
on: | |
push: | |
branches: | |
- main | |
- next | |
jobs: | |
lint: | |
uses: ./.github/workflows/lint.yml | |
unittest: | |
uses: ./.github/workflows/unittest.yml | |
e2e: | |
uses: ./.github/workflows/e2e.yml | |
release: | |
needs: | |
- lint | |
- unittest | |
- e2e | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build strapi-plugin-translate | |
run: npm run build --workspace strapi-plugin-translate | |
- name: Build strapi-provider-translate-deepl | |
run: npm run build --workspace strapi-provider-translate-deepl | |
- name: Build strapi-provider-translate-libretranslate | |
run: npm run build --workspace strapi-provider-translate-libretranslate | |
- name: Release | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npm run release |