From 13ffc9c6eff16504567dc0ecf61e951b07254265 Mon Sep 17 00:00:00 2001 From: Przemyslaw Bak Date: Fri, 17 Nov 2023 15:47:08 +0100 Subject: [PATCH] ci: publish package on npm via github actions --- .github/workflows/deploy-staging.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 7b13c04..389ad69 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -26,3 +26,7 @@ jobs: run: aws s3 sync ./storybook-static s3://${{ secrets.S3_BUCKET }} --delete - name: Invalidate Cloudfront run: aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION }} --paths "/*" + - name: Publish package on NPM + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}