From 0bc0bafdf151eac9dff894431f0e55ae89d84d14 Mon Sep 17 00:00:00 2001 From: granja <300868711+granjacours697-netizen@users.noreply.github.com> Date: Thu, 23 Jul 2026 04:00:46 +0200 Subject: [PATCH] Implement GitHub Actions workflow for NPM Added a GitHub Actions workflow for building, testing, and publishing NPM packages using access tokens. --- .../about-access-tokens.mdx | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/content/integrations/integrating-npm-with-external-services/about-access-tokens.mdx b/content/integrations/integrating-npm-with-external-services/about-access-tokens.mdx index 6654a7ad35a..2fa02dc0200 100644 --- a/content/integrations/integrating-npm-with-external-services/about-access-tokens.mdx +++ b/content/integrations/integrating-npm-with-external-services/about-access-tokens.mdx @@ -1,4 +1,32 @@ ---- +---workflow "Build, Test, and Publish" { + on = "push" + resolves = ["Publish"] +} + +action "Build" { + uses = "shinnn/actions-npm-alpine@master" + args = "install" +} + +action "Test" { + needs = "Build" + uses = "shinnn/actions-npm-alpine@master" + args = "test" +} + +# Filter for a new tag +action "Tag" { + needs = "Test" + uses = "shinnn/actions-npm-alpine@master" + args = "tag" +} + +action "Publish" { + needs = "Tag" + uses = "shinnn/actions-npm-alpine@master" + args = "publish --access public" + secrets = ["NPM_AUTH_TOKEN"] +} title: About access tokens redirect_from: - /getting-started/working_with_tokens