Skip to content

chore: 🔧 update add repo level secret orgs not working #5

chore: 🔧 update add repo level secret orgs not working

chore: 🔧 update add repo level secret orgs not working #5

Workflow file for this run

name: Publish Package on Tag
on:
push:
tags:
- "v*"
permissions:
contents: read
packages: write
jobs:
publish-npm:
name: Publish to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: https://registry.npmjs.org
scope: "@glideapps"
- name: Install dependencies
run: npm ci
- name: Build package
run: npm run build
- name: Verify package contents
run: |
echo "Package name: $(npm pkg get name)"
echo "Package version: $(npm pkg get version)"
echo "Files to be published:"
npm pack --dry-run
- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}