Merge pull request #276 from pilcrowonpaper/next #323
This file contains 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 v3" | |
on: [push] | |
env: | |
AURI_GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
AURI_NPM_TOKEN: ${{secrets.AURI_NPM_TOKEN}} | |
jobs: | |
publish: | |
name: Publish package and release with Auri | |
runs-on: ubuntu-latest | |
if: github.repository == 'pilcrowonpaper/arctic' && github.ref == 'refs/heads/main' | |
permissions: | |
contents: write | |
id-token: write | |
steps: | |
- name: Setup actions | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref }} | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: "https://registry.npmjs.org/" | |
- name: Install dependencies | |
run: npm install | |
- name: Build and publish package and release | |
run: npx auri publish |