Skip to content

Commit

Permalink
ci: update semantic-release config
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdbd committed May 13, 2022
1 parent 12c750d commit 3fe49c2
Show file tree
Hide file tree
Showing 16 changed files with 27 additions and 17 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ on:
jobs:
build-and-test:
name: 🔧 Build & 🔍 Test [${{ matrix.os }}, Node ${{ matrix.node }}]
needs: [release] # TODO: REMOVE THIS
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -28,6 +27,19 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- id: 'auth'
name: Authenticate to Google Cloud
# https://github.com/google-github-actions/auth
uses: google-github-actions/[email protected]
with:
credentials_json: ${{ secrets.SA_ARTIFACT_REGISTRY_WRITER }}
- name: Set up gcloud
# https://github.com/marketplace/actions/set-up-gcloud-cloud-sdk-environment
uses: google-github-actions/[email protected]
# - run: gcloud info
# - run: gcloud --version
- name: ⚙️ Refresh access token for Artifact Registry
run: npx google-artifactregistry-auth --repo-config .npmrc --verbose
- name: ⚙️ Install root package dependencies
run: npm ci
# BUILD ##################################################################
Expand Down
2 changes: 0 additions & 2 deletions config/semantic-release-plugins.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ const github = [
// https://github.com/semantic-release/npm
// Do not set npmPublish here. Instead, set "private": true or "private": false
// in the package.json of each monorepo package.
// TODO: check how to publish to Artifact Registry using semantic-release (I
// think I have to use this plugin.
const npm = ['@semantic-release/npm', { pkgRoot: '.' }]

module.exports = { github, npm }
2 changes: 1 addition & 1 deletion packages/cloud-scheduler-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Utility functions to work with Cloud Sheduler",
"author": "Giacomo Debidda <[email protected]> (https://giacomodebidda.com/)",
"license": "MIT",
"private": true,
"private": false,
"keywords": [
"cloud-scheduler",
"utils"
Expand Down
2 changes: 1 addition & 1 deletion packages/fattureincloud-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Unofficial API client for FattureInCloud",
"author": "Giacomo Debidda <[email protected]> (https://giacomodebidda.com/)",
"license": "MIT",
"private": true,
"private": false,
"keywords": [
"fattureincloud",
"invoicing"
Expand Down
2 changes: 1 addition & 1 deletion packages/firestore-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Utility functions to work with Firestore",
"author": "Giacomo Debidda <[email protected]> (https://giacomodebidda.com/)",
"license": "MIT",
"private": true,
"private": false,
"keywords": [
"database",
"gcp",
Expand Down
2 changes: 1 addition & 1 deletion packages/hapi-healthcheck-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Hapi plugin for a healthcheck",
"author": "Giacomo Debidda <[email protected]> (https://giacomodebidda.com/)",
"license": "MIT",
"private": true,
"private": false,
"keywords": [
"hapi",
"plugin"
Expand Down
2 changes: 1 addition & 1 deletion packages/hapi-ip-whitelist-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Hapi plugin to allow an IP whitelist",
"author": "Giacomo Debidda <[email protected]> (https://giacomodebidda.com/)",
"license": "MIT",
"private": true,
"private": false,
"keywords": [
"hapi",
"plugin"
Expand Down
2 changes: 1 addition & 1 deletion packages/keap-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Unofficial API client for Keap (aka Infusionsoft)",
"author": "Giacomo Debidda <[email protected]> (https://giacomodebidda.com/)",
"license": "MIT",
"private": true,
"private": false,
"keywords": [
"crm",
"infusionsoft",
Expand Down
2 changes: 1 addition & 1 deletion packages/notifications/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Functions used to send notifications to various channels (Telegram, email, etc)",
"author": "Giacomo Debidda <[email protected]> (https://giacomodebidda.com/)",
"license": "MIT",
"private": true,
"private": false,
"keywords": [
"email",
"instant-messaging",
Expand Down
2 changes: 1 addition & 1 deletion packages/schemas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "JSON schemas with Ajv (JSON schema validator)",
"author": "Giacomo Debidda <[email protected]> (https://giacomodebidda.com/)",
"license": "MIT",
"private": true,
"private": false,
"keywords": [
"schema"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Development scripts",
"author": "Giacomo Debidda <[email protected]> (https://giacomodebidda.com/)",
"license": "MIT",
"private": true,
"private": false,
"keywords": [
"gcp",
"scripts"
Expand Down
2 changes: 1 addition & 1 deletion packages/secret-manager-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Utilities for Secret Manager",
"author": "Giacomo Debidda <[email protected]> (https://giacomodebidda.com/)",
"license": "MIT",
"private": true,
"private": false,
"keywords": [
"secret-manager",
"secrets",
Expand Down
2 changes: 1 addition & 1 deletion packages/send-telegram-message/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "serverless function to send a message to a Telegram chat",
"author": "Giacomo Debidda <[email protected]>",
"license": "MIT",
"private": true,
"private": false,
"keywords": [
"function",
"telegram"
Expand Down
2 changes: 1 addition & 1 deletion packages/sqlite-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Utility functions to work with SQLite",
"author": "Giacomo Debidda <[email protected]> (https://giacomodebidda.com/)",
"license": "MIT",
"private": true,
"private": false,
"keywords": [
"sqlite",
"utils"
Expand Down
2 changes: 1 addition & 1 deletion packages/stripe-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Utility functions to work with Stripe",
"author": "Giacomo Debidda <[email protected]> (https://giacomodebidda.com/)",
"license": "MIT",
"private": true,
"private": false,
"keywords": [
"stripe",
"utils"
Expand Down
2 changes: 1 addition & 1 deletion packages/telegram-text-messages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Factory functions that return HTML-formatted strings to use in Telegram messages",
"author": "Giacomo Debidda <[email protected]> (https://giacomodebidda.com/)",
"license": "MIT",
"private": true,
"private": false,
"keywords": [
"predicate"
],
Expand Down

0 comments on commit 3fe49c2

Please sign in to comment.