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