Remove process.loadEnfFile() from main script (#112) #32
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish to NPM on new tag | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - v[2].[0-9]+.[0-9]+ | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - uses: actions/setup-node@v2 | |
| with: | |
| node-version: "22" | |
| registry-url: "https://registry.npmjs.org" | |
| - name: Install environment | |
| run: npm ci | |
| - name: Build for release | |
| run: npm run build | |
| - name: Publish new version to NPM | |
| id: publish-to-npm | |
| run: | | |
| echo "publishing" | |
| npm publish --provenance --access public | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| permissions: | |
| id-token: write |