Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
katiepark committed Jun 21, 2023
1 parent a05a762 commit d6914c2
Show file tree
Hide file tree
Showing 4 changed files with 2,904 additions and 47 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/nodejs.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/publish.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish package to GitHub Packages

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Checkout the repository
uses: actions/checkout@v3

- name: Install Node, setup .npmrc file to publish to GitHub Packages
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://npm.pkg.github.com'

- name: Install dependencies
run: npm ci

- name: Publish package to GitHub Packages
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit d6914c2

Please sign in to comment.