diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b0ce56e..c70da36 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,6 +9,7 @@ jobs: test: name: ๐Ÿงช Test runs-on: ubuntu-latest + steps: - name: ๐Ÿ‘ Checkout uses: actions/checkout@v3 @@ -17,6 +18,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: 16 + cache: 'npm' - name: ๐Ÿ“ฅ Install Dependencies run: npm install @@ -27,10 +29,10 @@ jobs: - name: ๐Ÿง‘โ€๐Ÿ”ฌ Tests run: npm run test - publish-npm: + publish: name: ๐Ÿš€ Publish - needs: test runs-on: ubuntu-latest + needs: test if: github.ref == 'refs/heads/main' steps: @@ -41,7 +43,6 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 - registry-url: https://registry.npmjs.org/ - name: ๐Ÿ“ฅ Install Dependencies run: npm install