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