diff --git a/.github/workflows/deployer.yaml b/.github/workflows/deployer.yaml index 15321565..d0b00d5f 100644 --- a/.github/workflows/deployer.yaml +++ b/.github/workflows/deployer.yaml @@ -1,19 +1,25 @@ name: Publish Package to npmjs + on: release: types: [created] + +permissions: + contents: read + id-token: write + jobs: - build: + publish: runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v3 - # Setup .npmrc file to publish to npm - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 with: - node-version: '18.x' - registry-url: 'https://registry.npmjs.org' + node-version: 18 + registry-url: https://registry.npmjs.org + - run: npm ci - run: npm run build - - run: npm publish --access=public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + - run: npm publish --access=public \ No newline at end of file