directus-dictionary icon indicating copy to clipboard operation
directus-dictionary copied to clipboard

feat: add publishing actions and rename

Open Jonesus opened this issue 2 years ago • 0 comments

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:

  1. Create an NPM account
  2. Create an automation access token (https://docs.npmjs.com/creating-and-viewing-access-tokens)
  3. 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)
  4. Merge this PR
  5. (Bump version?)
  6. Create a new release
  7. 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 :)

Jonesus avatar May 28 '22 21:05 Jonesus