setup v2 actions #285
Workflow file for this run
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 v2" | |
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/v2' | |
permissions: | |
contents: write | |
id-token: write | |
steps: | |
- name: Setup actions | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.ref }} | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
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 |