This repository has been archived by the owner on Nov 20, 2024. It is now read-only.
0.0.9 #15
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 Package | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
jobs: | |
publish-package: | |
if: ${{ github.events.release.prerelease == false }} | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.release.tag_name }} | |
- name: Setup Aftman | |
uses: ok-nick/[email protected] | |
- name: Setup Node LTS | |
uses: actions/setup-node@v2 | |
with: | |
node-version: lts/* | |
- name: Report Tool Versions | |
run: | | |
aftman -V | |
aftman list | |
node -v | |
npm -v | |
- name: Install Dependencies | |
run: | | |
npm install | |
wally install | |
- name: Remove Tests | |
run: | | |
find . -name "*.spec.lua" -delete | |
# - name: Publish to Roblox | |
# run: rojo upload default.project.json --asset_id "${{ secrets.ASSET_ID }}" --cookie "${{ secrets.ROBLOSECURITY }}" | |
- name: Publish to Wally | |
env: | |
WALLY_TOKEN: ${{ secrets.WALLY_TOKEN }} | |
run: | | |
mkdir -p ~/.wally | |
printf "[tokens]\n\"https://api.wally.run/\" = \"%s\"" "$WALLY_TOKEN" >> ~/.wally/auth.toml | |
wally publish | |
- name: Publish to NPM | |
uses: JS-DevTools/npm-publish@v1 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} |