Skip to content

update CLOUDFLARE_R2 environment variable #86

update CLOUDFLARE_R2 environment variable

update CLOUDFLARE_R2 environment variable #86

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