directus-dictionary
directus-dictionary copied to clipboard
feat: add publishing actions and rename
closes #3
This PR would add automatic NPM publishing and GitHub artifact uploads whenever creating a new release (for example through the GitHub web interface).
Here we also update the package.json name-field to a directus-extension
-prefix, so that this could be automatically installed to directus with npm install
(https://github.com/directus/directus/discussions/12408). Maybe even a rename to directus-extension-dictionary-interface
instead of this PRs directus-extension-dictionary
could be used?
Steps needed for this to work:
- Create an NPM account
- Create an automation access token (https://docs.npmjs.com/creating-and-viewing-access-tokens)
- Add a secret to your repo named
NPM_TOKEN
(https://docs.github.com/en/codespaces/managing-codespaces-for-your-organization/managing-encrypted-secrets-for-your-repository-and-organization-for-codespaces#adding-secrets-for-a-repository) - Merge this PR
- (Bump version?)
- Create a new release
-
npm install directus-extension-dictionary
:tada:
When trying this out (with npm package directus-extension-dictionary-test
) I noticed that the interface doesn't seem to work like the GIF when setting it up (on [email protected] at least), but as I don't know how to fix that I hope this PR might motivate you or someone to fix it at some point, would be really great for generic i18n strings for my usecases :)