update CLOUDFLARE_R2 environment variable #86
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: 'Release to npmjs.com' | |
# https://github.com/semantic-release/semantic-release/issues/2481#issuecomment-1409780688 | |
permissions: | |
contents: write | |
on: | |
push: | |
branches: | |
- canary | |
- main | |
jobs: | |
audit-build-test-release: | |
name: Audit, build, test, release all packages on ${{ matrix.os }}, Node ${{ matrix.node }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
# Use the Active LTS for this workflow | |
# https://nodejs.org/en/about/previous-releases | |
node: ['lts/Iron'] | |
steps: | |
- name: ποΈ Checkout repo | |
uses: actions/checkout@v4 | |
- name: βοΈ Set up Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: β¬οΈ Install dependencies | |
run: npm ci | |
- name: π‘οΈ Audit dependencies (audit-level high) | |
# https://docs.npmjs.com/cli/v8/commands/npm-audit#audit-level | |
run: npm audit --audit-level high | |
- name: π‘οΈ Audit dependencies (audit-level moderate) | |
continue-on-error: true | |
run: npm audit --audit-level moderate | |
- name: π¦ Build all libraries | |
run: npm run build:libs | |
- name: π Test 11ty-plugin Content-Security-Policy | |
run: npm run test:ci -w packages/eleventy-plugin-content-security-policy | |
- name: π Test 11ty-plugin Ensure-Env-Vars | |
env: | |
DEBUG: Eleventy:EleventyErrorHandler,11ty-plugin* | |
NODE_ENV: test | |
run: npm run test:ci -w packages/eleventy-plugin-ensure-env-vars | |
- name: π Test 11ty-plugin Plausible | |
env: | |
PLAUSIBLE: ${{ secrets.PLAUSIBLE }} | |
run: npm run test:ci -w packages/eleventy-plugin-plausible | |
- name: π Test 11ty-plugin Telegram | |
env: | |
TELEGRAM: ${{ secrets.TELEGRAM }} | |
run: npm run test:ci -w packages/eleventy-plugin-telegram | |
- name: π Test 11ty-plugin Text-to-Speech | |
env: | |
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
CLOUDFLARE_R2: ${{ secrets.CLOUDFLARE_R2 }} | |
SA_JSON_KEY_STORAGE_UPLOADER: ${{ secrets.SA_JSON_KEY_STORAGE_UPLOADER }} | |
SA_JSON_KEY_TEXT_TO_SPEECH: ${{ secrets.SA_JSON_KEY_TEXT_TO_SPEECH }} | |
run: npm run test:ci -w packages/eleventy-plugin-text-to-speech | |
- name: π Release to npmjs | |
env: | |
# The github token must allow to push to this GitHub repository. | |
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_NPM_TOKEN }} | |
TELEGRAM_BOT_ID: ${{ secrets.TELEGRAM_BOT_ID }} | |
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
TELEGRAM_CHAT_ID: ${{ fromJSON(secrets.TELEGRAM).chat_id }} | |
run: > | |
npx multi-semantic-release | |
--ignore-private | |
--ignore-packages=packages/demo-site | |