Release v1.1.7-beta.7 #10
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
| # Publish a beta release of nuwax-codex-acp to npm (@beta dist-tag). | |
| # Triggered by pushing a v*-beta* tag or manually via workflow_dispatch. | |
| name: Release Beta | |
| on: | |
| push: | |
| tags: | |
| - 'v*-beta*' | |
| workflow_dispatch: | |
| inputs: | |
| tag_name: | |
| description: 'Tag name (e.g. v1.1.8-beta.1)' | |
| required: false | |
| type: string | |
| permissions: | |
| contents: write | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: '24' | |
| - name: Configure sandboxing | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install --yes bubblewrap | |
| sudo sysctl -w kernel.unprivileged_userns_clone=1 | |
| if [ -f /proc/sys/kernel/apparmor_restrict_unprivileged_userns ]; then | |
| sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 | |
| fi | |
| - run: npm install | |
| - run: npm run typecheck | |
| - run: npm test | |
| publish-to-npm: | |
| needs: verify | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v7 | |
| with: | |
| node-version: '24' | |
| registry-url: 'https://registry.npmjs.org' | |
| - run: npm install | |
| - run: npm publish --access public --tag beta | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| create-release: | |
| needs: publish-to-npm | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Create Pre-Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| prerelease: true | |
| generate_release_notes: true |