From 68e614b3fada5d1a6e5d4b7d030c42680311baeb Mon Sep 17 00:00:00 2001 From: Toby Date: Sat, 19 Aug 2023 18:00:13 +0200 Subject: [PATCH] prepare workflow for release --- .../workflows/{publish-pre.yml => publish-main.yml} | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename .github/workflows/{publish-pre.yml => publish-main.yml} (76%) diff --git a/.github/workflows/publish-pre.yml b/.github/workflows/publish-main.yml similarity index 76% rename from .github/workflows/publish-pre.yml rename to .github/workflows/publish-main.yml index db6a14a..ba2bec3 100644 --- a/.github/workflows/publish-pre.yml +++ b/.github/workflows/publish-main.yml @@ -1,4 +1,4 @@ -name: Publish (pre) +name: Publish (main) on: release: @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 'latest' + node-version: latest registry-url: https://registry.npmjs.org/ - name: Install dependencies run: npm ci @@ -20,12 +20,12 @@ jobs: - name: Publish to npmjs env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - run: npm publish --tag pre --access public + run: npm publish --tag latest --access public - uses: actions/setup-node@v3 with: - node-version: 'latest' + node-version: latest registry-url: https://npm.pkg.github.com/ - name: Publish to GPR env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} - run: npm publish --tag pre --access public \ No newline at end of file + run: npm publish --tag latest --access public