Commit Graph

43 Commits

Author SHA1 Message Date
Rijk van Zanten
ac548e6436 Add permissions to gh actions (#25603) 2025-08-05 15:27:21 -04:00
Wryn (yage) Wagner
afeab44daf metadata is apparently implicit (#25144) 2025-04-29 14:17:42 -06:00
Wryn (yage) Wagner
8982791324 restore build permissions (#25140) 2025-04-29 13:42:25 -06:00
Daniel Breitlauch
51e03aea9d Add Docker Image Signing (#25058) 2025-04-11 15:39:40 +02:00
renovate[bot]
a07408e461 Update docker/build-push-action action to v6 (#23689)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-18 13:53:48 +00:00
Pascal Jufer
12290b6031 Update cache action in release workflow (#21231) 2024-01-29 11:22:12 +01:00
Pascal Jufer
86aedeb27c Patch Tuesday 🐸 (#21221)
* Update root deps

* Update `@directus/api` deps

* Update `@directus/app` deps

* Update `docs` deps

* Update `@directus/components` deps

* Update `@directus/composables` deps

* Update `create-directus-extension` deps

* Update `create-directus-project` deps

* Update `@directus/data` deps

* Update `@directus/data-driver-postgres` deps

* Update `@directus/data-sql` deps

* Update `@directus/env` deps

* Update `@directus/extensions` deps

* Update `@directus/extensions-sdk` deps

* Update `@directus/memory` deps

* Update `@directus/random` deps

* Update `@directus/release-notes-generator` deps

* Update `@directus/storage` deps

* Update `@directus/storage-driver-cloudinary` deps

* Update `@directus/storage-driver-local` deps

* Update `@directus/storage-driver-s3` deps

* Update `@directus/storage-driver-supabase` deps

* Update `@directus/stores` deps

* Update `@directus/themes` deps

* Update `@directus/update-check` deps

* Update `@directus/utils` deps

* Update `@directus/validation` deps

* Update `tests/blackbox` deps

* Add changeset

* Bump pnpm to 8.15.0

* Update GH actions
2024-01-28 22:56:34 +01:00
Pascal Jufer
eb9655ac1e Update GitHub actions in workflows (#20705) 2023-12-11 17:41:34 +01:00
Pascal Jufer
f29b5a167a Enable npm provenance (#20182) 2023-10-25 13:13:46 -04:00
Pascal Jufer
61b7432950 Use fixed tag for prereleases (#20180) 2023-10-25 11:21:07 +02:00
Pascal Jufer
96bb544c56 Support for prereleases in release workflow (#19510)
* Make release workflow compatible for prereleases

* Support prereleases in release-notes-generator

* Update readme

* Create metal-dodos-return.md

* Update .changeset/metal-dodos-return.md

* Override version of main package

* Rework & enable usage with changesets's prerelease mode

* Fix conditional DIRECTUS_PRERELEASE_ID output

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

* Add hint to beforeExit event

* Add basic test for getInfo

---------

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
2023-08-25 16:48:50 +02:00
Pascal Jufer
2e647d80e6 Patch Tuesday 🐸 (#18643)
* Update `directus-monorepo` deps

* Update `@directus/api` deps

* Update `@directus/app` deps

* Update `@directus/composables` deps

* Update `create-directus-extension` deps

* Update `@directus/exceptions` deps

* Update `@directus/data` deps

* Update `@directus/data-driver-postgres` deps

* Update `@directus/extensions-sdk` deps

* Update `@directus/pressure` deps

* Update `@directus/random` deps

* Update `@directus/release-notes-generator` deps

* Update `@directus/storage` deps

* Update `@directus/storage-driver-azure` deps

* Update `@directus/storage-driver-cloudinary` deps

* Update `@directus/storage-driver-gcs` deps

* Update `@directus/storage-driver-local` deps

* Update `@directus/storage-driver-s3` deps

* Update `@directus/types` deps

* Update `@directus/update-check` deps

* Update `@directus/utils` deps

* Update `docs` deps

* Update `tests-blackbox` deps

* Bump pnpm to 8.5.1

* Bump build-push-action in release workflow to v4

* Assign new spy instances before each test

See https://github.com/vitest-dev/vitest/pull/3386

* Create clean-needles-nail.md

* Remove leftover 'beforeAll' imports

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>

---------

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-05-19 10:48:21 -04:00
Pascal Jufer
15b91dee34 Blackbox tests restructuring (#18122)
Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-11 18:28:37 +02:00
Pascal Jufer
5d6468b477 Fix publishing of packages to NPM in release workflow (#17900)
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-03-23 14:02:55 -04:00
Rijk van Zanten
59f965cc8d Update release.yml 2023-03-23 13:40:26 -04:00
Rijk van Zanten
0d8b3a52c7 Simplify / improve release flow (#17858)
* Remove git-hook

This is already running in GH Actions as well

* Start new Dockerfile

* Remove unused files

* Close, but not quite

* Line break between environment specific commands / operational ones

* Cleanup dockerfile

* Update github release automation

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Improve based on review comments

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-03-23 13:20:14 -04:00
Pascal Jufer
59dcd30e6e Use npm auth set-up from 'setup-node' action (#17656) 2023-03-01 08:07:16 +01:00
Pascal Jufer
f5c564ddfd Fix "Create release" job (#16261) 2022-11-01 21:11:51 -04:00
Pascal Jufer
92466dd2a9 Replace depreacted "create-release" action (#16144)
* Replace depreacted "create-release" action

* Fix indentation

* Target is not required as the tag will already exist

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2022-10-24 12:26:47 -04:00
Pascal Jufer
5507ca3f41 Fix path for packages in package.json used for Docker image (#16141)
* Use basename to get relative path for packages

* Revert "Revert "Small `Release` workflow clean-up (#16083)" (#16120)"

This reverts commit c2ee8c24ef.
2022-10-24 09:47:03 -04:00
Rijk van Zanten
c2ee8c24ef Revert "Small Release workflow clean-up (#16083)" (#16120)
This reverts commit dbfedb56fe.
2022-10-22 13:05:22 -04:00
Pascal Jufer
dbfedb56fe Small Release workflow clean-up (#16083)
* Consistent usage of `if` statements

Brackets are not required in `if` statements, see https://docs.github.com/en/actions/learn-github-actions/expressions#about-expressions

* Use prepare action to setup pnpm in publish-npm job
2022-10-20 12:34:19 -04:00
Pascal Jufer
3e8d965642 Clean-up GitHub workflows (#14945)
* Clean-up GitHub workflows

* Remove checkout step from 'prepare' action instead
2022-08-08 10:34:39 -04:00
rijkvanzanten
54f80376c8 Don't cache npm in node checkout 2022-07-21 15:30:26 -04:00
Rijk van Zanten
27cc3e1bec Move repo to pnpm based workflow (#14350)
* Use pnpm instead of npm

* Setup workspace

* Replace scripts / lerna root stuff

* Add todo file

* Update lock, start updating packages

* Update todo

* [WIP] Keep going on module resolution in pnpm

* Fix final missing deps/types for complete build

* [WIP] Replace npm commands with pnpm alternatives

* Update jest config for v28

* Fix missing package under schema

* Update workflow

* Run CI on fork

* Use local reference

* Remove version from local workflow

* Add build to prepare

* Add Node's max old space size flag to linter

* Idemdito for codeql

* Hyphens? Underscores?

* Bang

* Only build one thing at a time

* Underscores after all?

* Match 7gb of GH

* Set env on prepare

* Jest is driving me nuts

* Downgrade jest

* Add root jest

* We'll get there, eventually.

* 🥳

* Het houdt niet op, niet vanzelf

* attempt to fix e2e

* fix unit test & shared import

* add `debug: true` to CodeQL action

* Fix dev call in shared

* Add missing cross-env

* Add missing geo-json dependency for app

* add flag to prepare action to skip build

* remove debug flag from codeql action

* fix invalid env syntax

* add tslib to app dependencies for tests

* another attempt

* Added missing rimraf dependency for the api prebuild/cleanup scripts

* Added missing ts-node dependency for the api cli script

* update E2E tests readme to use pnpm

* Undo move of extensions sdk

* Fixes nested groups in accordions not rendering fields (#14369)

* initial fix for nested groups in accordions

* removed debug code

* Fix strict relative dates showing "incorrect" (#14390)

* Set rounding method of relative formatted date to floor when strict option is selected

* Add round fn as an option

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>

* Don't use locales in generated camelCased values from env (#14401)

Ref https://github.com/directus/directus/discussions/14122

* Fix list panel descending sort (#14396)

* fix list panel descending sort

* Handle missing or explicit desc value

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>

* Fix query primary field for system tables (#14402)

* New Crowdin updates (#14403)

* Update source file en-US.yaml

* New translations en-US.yaml (Spanish, Chile)

* New translations en-US.yaml (Spanish, Latin America)

* New translations en-US.yaml (Greek)

* New translations en-US.yaml (Italian)

* New translations en-US.yaml (French, Canada)

* Fix/wysiwyg context menu (#14404)

* New translations en-US.yaml (Polish) (#14407)

* Encoded the url using encodeURIComponent, so that the url gets sanitzed and so, we did not get 404 error. (#14418)

* Encoded the url using encodeURIComponent, so that the url gets sanitized and we did not get 404 error.

* Added required changes as stated by the reviewer

* Used encodeURI instead of encodeURIComponent to encode the params only

* Solved linting error

* Solved linting errors

* checked with npm run lint, no linting errors found

* fix generateJoi error due to empty permissions when creating new role (#14416)

* fix empty permissions when creating new role

* basic test

* move logic up

* additional test

* Update api/tests/utils/filter-items.test.ts

Co-authored-by: ian <licitdev@gmail.com>

Co-authored-by: ian <licitdev@gmail.com>

* Recreate lockfile

* Fix build of extensions-sdk

* Add missing dependency

* Add some more missing deps

* Update blackbox to use pnpm

* Update workflow to use main

* Update pack to work with pnpm

* Simplify commands

* Remove todo file (completed)

* ADd missing types dep

* Use local test version

* Remove version from local reference

* Call super with context

* Add missing dep

* Simplify workflows

Ref https://github.com/directus/organization/issues/135

* Simplify some more

* Linter is on root

Co-authored-by: Azri Kahar <42867097+azrikahar@users.noreply.github.com>
Co-authored-by: brainslug <tim@brainslug.nl>
Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
Co-authored-by: Gerard Lamusse <gerardlamo@gmail.com>
Co-authored-by: José Varela <joselcvarela@gmail.com>
Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Zeel Pathak <60271095+zeel-pathak@users.noreply.github.com>
2022-07-15 17:41:49 -04:00
rijkvanzanten
4d63fba50a Increase node mem allocation in release flow
Should fix the build issue where rollup runs out of memory when building the app
2022-06-03 10:33:52 -04:00
Nicola Krumschmidt
ed97f8bf97 Remove workaround in release flow (#13455)
This forces the release workflow to use `node@16.15` which includes `npm@8.5`.
2022-05-25 12:22:27 -04:00
Pascal Jufer
9bbfdec611 No 'latest' Docker tag for pre-releases anymore (#9512) 2021-11-09 09:42:15 -05:00
Pascal Jufer
ae1987a359 Revise GitHub workflows (#9011)
* Fix check for changed files & reformat workflows

* Test performance of paths-filter action

* Revise workflows

* Better wording

* Fix naming of "Pre-Check"

* Point out values

* Abreviate to make it look cleaner in report
2021-10-25 11:22:06 -04:00
Tien Tran
b3f1e3383e Skip publish-npm job in the release workflow for forked repos (#8957) 2021-10-20 09:48:08 -04:00
Oscar Dominguez
432fc0ff93 ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#8748) 2021-10-12 16:10:17 -04:00
rijkvanzanten
86ce598edd Tweak, hopefully fix release flow 2021-08-10 16:22:32 -04:00
Pascal Jufer
21ebcf30ab Add latest tag & remove sha tag for Docker image (#6837) 2021-07-15 16:17:37 -04:00
rijkvanzanten
f60deb9ca2 Remove prepublish build step, handled in CI 2021-07-15 14:23:48 -04:00
Nicola Krumschmidt
d529b0373b Use actions/setup-node's way of authenticating to npm registry (#6827) 2021-07-15 10:33:32 -04:00
Nicola Krumschmidt
87720f4ba2 Fix publishing packages without changes (#6825)
Despite the name, "--force-publish" is actually an option for "lerna version".
When using "lerna publish from-git", lerna won't run "lerna version" beforehand,
so we can savely remove the "lerna version"-specific options.
2021-07-15 10:22:58 -04:00
Sean Goff
f29dee4a3e disable lerna access verification (#6805) 2021-07-14 20:07:09 -04:00
rijkvanzanten
eae4b620ae Fix npm token in publish step 2021-07-14 18:18:51 -04:00
rijkvanzanten
ce50209ff6 Attempt to fix Release CD 2021-07-14 17:25:33 -04:00
rijkvanzanten
bd32589bb9 Remove NPM token check 2021-07-14 17:00:47 -04:00
rijkvanzanten
41e1a58536 Update release command to only version 2021-07-14 16:48:02 -04:00
Pascal Jufer
81c638b938 Add support for Docker ARM image (#6796)
* test

* ci improvements

* fix image names

* improve docs

* Update .github/workflows/release.yml

Co-authored-by: Pascal Jufer <paescuj@users.noreply.github.com>

* Update docker/pack.js

Co-authored-by: Pascal Jufer <paescuj@users.noreply.github.com>

* improvements proposed by @paescuj

* improve Dockerfile comment

* fix .PHONY

* rm tarballs before building final image

* Add support for Docker ARM image

* Label is already added by GitHub action

Co-authored-by: Sean Goff <sean318@hotmail.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-07-14 16:43:36 -04:00
Sean Goff
b67b9d824a Build improvements (#6759)
* test

* ci improvements

* fix image names

* improve docs

* Update .github/workflows/release.yml

Co-authored-by: Pascal Jufer <paescuj@users.noreply.github.com>

* Update docker/pack.js

Co-authored-by: Pascal Jufer <paescuj@users.noreply.github.com>

* improvements proposed by @paescuj

* improve Dockerfile comment

* fix .PHONY

* rm tarballs before building final image

Co-authored-by: Pascal Jufer <paescuj@users.noreply.github.com>
2021-07-14 16:40:38 -04:00