From 41e5c62095d9a6c8ff0d21c43dbf315e8ff17a6f Mon Sep 17 00:00:00 2001 From: Nikolay Kharitonov Date: Tue, 5 Dec 2023 18:40:47 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20remove=20publishing=20to=20githu?= =?UTF-8?q?b?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/npm.yml | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml index 933505b..0d8d709 100644 --- a/.github/workflows/npm.yml +++ b/.github/workflows/npm.yml @@ -13,32 +13,12 @@ jobs: steps: - name: โคต๏ธ Checkout uses: actions/checkout@v3 - # Setup .npmrc file to use GitHub Packages - name: ๐Ÿ”จ Setup node (github registry) uses: actions/setup-node@v3 with: node-version: '10.x' - name: ๐Ÿ‘ท Install run: npm ci - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: ๐Ÿ” Setup npm registry (github) - run: npm config set registry https://npm.pkg.github.com - - name: ๐Ÿ“ฆ๏ธ Publish package (github registry) - if: github.ref_name == 'master' - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: ๐Ÿ“ฆ๏ธ Publish tagged package (github registry) - if: github.ref_name != 'master' - run: npm publish --tag ${{ github.ref_name }} - env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: ๐Ÿ”จ Setup node (npmjs) - uses: actions/setup-node@v3 - with: - node-version: '10.x' - registry-url: 'https://registry.npmjs.org' - name: ๐Ÿ“ฆ๏ธ Publish package (npmjs) if: github.ref_name == 'master' run: npm publish